# Compress offload playback

Source: [https://docs.qualcomm.com/doc/80-88500-4/topic/compress_offload_playback.html](https://docs.qualcomm.com/doc/80-88500-4/topic/compress_offload_playback.html)

The offload sink is used for compressed/pulse code modulation (PCM) playback via
        offload path such as music.

The following code provides the offload playback configuration:

    [Sink offload0]
    description = qahw sink to play pcm/compressed music data via offload path
    type = offload
    flags = AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD AUDIO_OUTPUT_FLAG_NON_BLOCKING AUDIO_OUTPUT_FLAG_DIRECT
    default-encoding = pcm
    default-sample-rate = 48000
    default-sample-format = s16le
    default-channel-map = front-left,front-right
    encodings = pcm mpeg aac
    port-names = speaker hdmi-out
    presence = always
    use-hw-volume = trueCopy to clipboard

For detailed information on each property of a sink, see the default.conf
            file.

    ;[Sink name]
    ; name =
    ; description =
    ; type = offload | low-latency | ultra-low-latency | primary
    ; flags = AUDIO_OUTPUT_FLAG_FAST | AUDIO_OUTPUT_FLAG_RAW | AUDIO_OUTPUT_FLAG_DIRECT_PCM | AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD | AUDIO_OUTPUT_FLAG_NON_BLOCKING | AUDIO_OUTPUT_FLAG_PRIMARY
    ; default-sample-format = #default sample format
    ; default-sample-rate = #default sample rate
    ; default-channel-map = #default channel map
    ; encodings = #list of encodings
    ; sample-rates = #list of supported sample rates
    ; sample-formats = #list of sample formats
    ; channel-maps = #list of channel maps
    ; format-detection = yes | no # yes if format detection is supported by a port
    ; presence = static | dynamic #static sinks are created at module load and dynamic sink are created based on event
    ; port-names = #list of support ports for this sink, first entry is will be considered as default port
    ; use-hw-volume = true | false #true for if dsp volume needs to applied
    ; alternate-sample-rate = #alternate sample to be supported
    ; max-sink-gain = #supported gain from 0 to QAHW_MAX_GAIN
    ; avoid-processing = #list of configurations that PA should avoid processing (all, rate, bitwidth, channels, true)
    ; disable-qahw-sink = #yes, if qahw sink is to be disabled during start upCopy to clipboard

**Parent Topic:** [Audio playback use case](https://docs.qualcomm.com/doc/80-88500-4/topic/audio_playback_use_case.html)

Last Published: Aug 18, 2023

[Previous Topic
Primary playback](https://docs.qualcomm.com/bundle/publicresource/80-88500-4/topics/primary_playback.md) [Next Topic
Audio DSP](https://docs.qualcomm.com/bundle/publicresource/80-88500-4/topics/141_DSP.md)