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.  ;-)

--Ben



2009/7/5 Sten Kvamme <s...@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@lists.openmoko.org
> https://lists.openmoko.org/mailman/listinfo/devel
>
>

_______________________________________________
devel mailing list
devel@lists.openmoko.org
https://lists.openmoko.org/mailman/listinfo/devel

Reply via email to