1
Cosmo Communicator - Android / Re: distorted notification sound when closed
« on: April 11, 2023, 06:52:39 am »
We did some more testing. The distortion seems to be of the kind that you get when the pointer into a PCM buffer is shifted by a byte. There's constant distortion and the desired sound is discernible somewhat with varying volume behind it.
We can start playback of a music file (MP3) in opened mode and it continues smooth playback after closing the device. I can also change the playback volume in CoDi. BUT: Once the playback is paused and then resumed via CoDi, the distortion is there. When I now change the volume, I can discern the music getting quieter/louder, but the distortion/noise stays loud.
Ringtone and notification are both affected, but the amount of perceived distortion varies depending on the intended sound.
It seems that any playback of audio that starts while the device is closed (regardless of CoDi being active or not) gets mistreated in the buffering with a byte shift. Reminds me a bit of that issue of audio being out of phase … maybe there's still some bug in the kernel driver, even? Or rather the userspace audio processing? This started happening after adding custom ringtones, probably. We removed the corresponding Ringtones and Notifications folders on the internal storage and used various standard sounds, but that does not change things back regarding the playback issue.
There is a period of rather loud baselevel noise before/after the notification sound is played, too. How is the handling of audio playback differing here from a normal Android device? Phone calls themselves (via the earpiece speakers) are fine.
Also: The phone does not vibrate at all when closed. When open, it rings and vibrates on calls or notifications as configured. Something is messed up there. Anyone experienced something like this? Is a factory reset (annoying to the user) likely to fix this?
We can start playback of a music file (MP3) in opened mode and it continues smooth playback after closing the device. I can also change the playback volume in CoDi. BUT: Once the playback is paused and then resumed via CoDi, the distortion is there. When I now change the volume, I can discern the music getting quieter/louder, but the distortion/noise stays loud.
Ringtone and notification are both affected, but the amount of perceived distortion varies depending on the intended sound.
It seems that any playback of audio that starts while the device is closed (regardless of CoDi being active or not) gets mistreated in the buffering with a byte shift. Reminds me a bit of that issue of audio being out of phase … maybe there's still some bug in the kernel driver, even? Or rather the userspace audio processing? This started happening after adding custom ringtones, probably. We removed the corresponding Ringtones and Notifications folders on the internal storage and used various standard sounds, but that does not change things back regarding the playback issue.
There is a period of rather loud baselevel noise before/after the notification sound is played, too. How is the handling of audio playback differing here from a normal Android device? Phone calls themselves (via the earpiece speakers) are fine.
Also: The phone does not vibrate at all when closed. When open, it rings and vibrates on calls or notifications as configured. Something is messed up there. Anyone experienced something like this? Is a factory reset (annoying to the user) likely to fix this?