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.

To have ~0 latency you should integrate the sound playing in your
application, decode the sound in raw format with some library and take
it resident in ram. To play it use directly alsa-lib.
This may waste memory if sounds are big. A better solution may be to
have raw sounds decoded on SD and load them when needed.

Emit sounds on button press instead of button release helps :)

    Nicola

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

Reply via email to