:: Re: [maemo-leste] Audio fun on Maem…
Pàgina inicial
Delete this message
Reply to this message
Autor: Pavel Machek
Data:  
A: merlijn, maemo-leste
Assumpte: Re: [maemo-leste] Audio fun on Maemo Leste
On Sat 2021-02-06 10:54:54, Pavel Machek wrote:
> Hi!
>
> Fun with audio:
>
> aplay works ok... as long as I don't use touchscreen. Touchscreen
> sound results in
>
> user@devuan-droid4:/my/unicsy_demo$ aplay -D plughw:CARD=Audio,DEV=0
> /usr/share/unicsy/tones/fallback.wav
> aplay: main:852: audio open error: Device or resource busy
>
> I guess that's usual "alsa can be only opened once".
>
> Okay, so lets try to use paplay... That works, but audio quality is
> bad, with loud clicking perhaps once a second.


The clicking does not happen if I use same audio encoded at higher
bitrate:

user@devuan-droid4:/my/unicsy_demo/tones$ paplay /tmp/ALARM-big.wav
user@devuan-droid4:/my/unicsy_demo/tones$ aplay /tmp/ALARM-big.wav
Playing WAVE '/tmp/ALARM-big.wav' : Signed 16 bit Little Endian, Rate
44100 Hz, Stereo
user@devuan-droid4:/my/unicsy_demo/tones$ aplay
/my/unicsy_demo/tones/ALARM.wav
Playing WAVE '/my/unicsy_demo/tones/ALARM.wav' : Signed 16 bit Little
Endian, Rate 4000 Hz, Stereo
user@devuan-droid4:/my/unicsy_demo/tones$ paplay
/my/unicsy_demo/tones/ALARM.wav
user@devuan-droid4:/my/unicsy_demo/tones$

ALARM.wav clicks, ALARM-big.wav does not.

Best regards,
                                Pavel
-- 
http://www.livejournal.com/~pavelmachek