Hello, i notice that on some games ( like i play COTC) the audio output seem to crackling and distort, especially on speaker.
I check with dumpsys and the audio processing format seem to be force change to pcm_float instead of pcm_16 bit compare to others source (like youtube...)
here are the dumpsys for reference
Output thread 0xb400007035595030, name AudioOut_15, tid 1180, type 0 (MIXER):
I/O handle: 21
Standby: no
Sample rate: 48000 Hz
HAL frame count: 144
HAL format: 0x1 (AUDIO_FORMAT_PCM_16_BIT)
HAL buffer size: 576 bytes
Channel count: 2
Channel mask: 0x00000003 (front-left, front-right)
Processing format: 0x5 (AUDIO_FORMAT_PCM_FLOAT)
Processing frame size: 8 bytes
Pending config events: none
Output devices: 0x2 (AUDIO_DEVICE_OUT_SPEAKER)
Input device: 0 (AUDIO_DEVICE_NONE)
Audio source: 0 (AUDIO_SOURCE_DEFAULT)
compare to youtube
Output thread 0xb400007035715070, name AudioOut_25, tid 1183, type 0 (MIXER):
I/O handle: 37
Standby: no
Sample rate: 48000 Hz
HAL frame count: 1920
HAL format: 0x1 (AUDIO_FORMAT_PCM_16_BIT)
HAL buffer size: 7680 bytes
Channel count: 2
Channel mask: 0x00000003 (front-left, front-right)
Processing format: 0x1 (AUDIO_FORMAT_PCM_16_BIT)
Processing frame size: 4 bytes
Pending config events: none
Output devices: 0x2 (AUDIO_DEVICE_OUT_SPEAKER)
Input device: 0 (AUDIO_DEVICE_NONE)
Audio source: 0 (AUDIO_SOURCE_DEFAULT)
if anyone had any insight about this problem, please share
I check with dumpsys and the audio processing format seem to be force change to pcm_float instead of pcm_16 bit compare to others source (like youtube...)
here are the dumpsys for reference
Output thread 0xb400007035595030, name AudioOut_15, tid 1180, type 0 (MIXER):
I/O handle: 21
Standby: no
Sample rate: 48000 Hz
HAL frame count: 144
HAL format: 0x1 (AUDIO_FORMAT_PCM_16_BIT)
HAL buffer size: 576 bytes
Channel count: 2
Channel mask: 0x00000003 (front-left, front-right)
Processing format: 0x5 (AUDIO_FORMAT_PCM_FLOAT)
Processing frame size: 8 bytes
Pending config events: none
Output devices: 0x2 (AUDIO_DEVICE_OUT_SPEAKER)
Input device: 0 (AUDIO_DEVICE_NONE)
Audio source: 0 (AUDIO_SOURCE_DEFAULT)
compare to youtube
Output thread 0xb400007035715070, name AudioOut_25, tid 1183, type 0 (MIXER):
I/O handle: 37
Standby: no
Sample rate: 48000 Hz
HAL frame count: 1920
HAL format: 0x1 (AUDIO_FORMAT_PCM_16_BIT)
HAL buffer size: 7680 bytes
Channel count: 2
Channel mask: 0x00000003 (front-left, front-right)
Processing format: 0x1 (AUDIO_FORMAT_PCM_16_BIT)
Processing frame size: 4 bytes
Pending config events: none
Output devices: 0x2 (AUDIO_DEVICE_OUT_SPEAKER)
Input device: 0 (AUDIO_DEVICE_NONE)
Audio source: 0 (AUDIO_SOURCE_DEFAULT)
if anyone had any insight about this problem, please share