Play sound fast
lists.openmoko.org at wongs.net
Sun Jul 5 13:44:08 CEST 2009
Nicola and Abelenda have given you the correct solutions (direct
library calls or a sound daemon). Here's an incorrect solution that
has the sole benefit of being dead simple.
cat click.au > /dev/audio
You'll want to convert the sound files to au format (Mu-law, 8kHz,
mono) using: sox foo.wav -r 8000 -c 1 -U foo.au.
Although a brain dead kludge, writing directly to /dev/audio can
sometimes be useful. Just don't tell anyone I told you about it. ;-)
2009/7/5 Sten Kvamme <sten at kvamme.se>:
> Buttons with some action sound (eg klick, boink or broken glass) should
> have minimal latency between touching the button and the sound.
> I have tested mplayer, madplay and aplay and mplayer is the slowest,
> aplay is the fastest with < 1sec latency. Are there faster players
> around? I found that the timing corresponds to the player binary file
> size, where mplayer is 2884588, madplay is 84028 and aplay is 54284.
> So, what I am looking for is maybe a smaller player than aplay.
> devel mailing list
> devel at lists.openmoko.org
More information about the devel