Optional functions, but in some devices the filter is already inserted and there will be no sound without it.
They may or may not work if there is no sound.
The code is inserted into the function.
outputs, right after
primarysamling_ratesand
formatsshould be the same as in
primary(some may have lost sound, then do not install above 16/48)
Audio output flags
AUDIO_OUTPUT_FLAG_PRIMARY (primary audio output, used as standard on most devices)
AUDIO_OUTPUT_FLAG_DEEP_BUFFER (Deep Buffer)
AUDIO_OUTPUT_FLAG_FAST (fast audio output)
Filter, can positively and nadotivno affect the sound (not all will work)
fast {
sampling_rates 48000
channel_masks AUDIO_CHANNEL_OUT_STEREO
formats AUDIO_FORMAT_PCM_16_BIT
devices AUDIO_DEVICE_OUT_SPEAKER | AUDIO_DEVICE_OUT_WIRED_HEADSET | AUDIO_DEVICE_OUT_WIRED_HEADPHONE
flags AUDIO_OUTPUT_FLAG_FAST
}
Filter flags
AUDIO_OUTPUT_FLAG_FAST
AUDIO_OUTPUT_FLAG_RAW
AUDIO_OUTPUT_FLAG_SLOW
AUDIO_OUTPUT_FLAG_WAV
Deep buffer
If the primary buffer flag is already enabled, then this is not necessary.
deep_buffer {
sampling_rates 48000
channel_masks AUDIO_CHANNEL_OUT_STEREO
formats AUDIO_FORMAT_PCM_16_BIT
devices AUDIO_DEVICE_OUT_SPEAKER | AUDIO_DEVICE_OUT_WIRED_HEADSET | AUDIO_DEVICE_OUT_WIRED_HEADPHONE
flags AUDIO_OUTPUT_FLAG_DEEP_BUFFER
}
Compression in the headphone output is better not to use at all, there will be a loss in quality
For a2dp profile it is sometimes useful
compress_offload {
sampling_rates 48000
channel_masks AUDIO_CHANNEL_OUT_MONO
formats AUDIO_FORMAT_FLAC
devices AUDIO_DEVICE_OUT_EARPIECE
flags AUDIO_OUTPUT_FLAG_DIRECT
}
The list of audio compression formats from the highest to the lowest quality (this is not the entire list, but the most normal ones) (not all will be supported)
AUDIO_FORMAT_FLAC
AUDIO_FORMAT_ALAC
AUDIO_FORMAT_APE
AUDIO_FORMAT_VORBIS
AUDIO_FORMAT_WMA
AUDIO_FORMAT_WMA_PRO
AUDIO_FORMAT_MP3
Flags for compression
AUDIO_OUTPUT_FLAG_DIRECT (direct audio output)
AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD (compresses the discharge at the output)
AUDIO_OUTPUT_FLAG_NON_BLOCKING (audio output is not blocked)