OESF Portables Forum

General Forums => Off Topic forum => Topic started by: Foxdie on December 21, 2003, 10:04:22 am

Title: Fastest way to play a wav?
Post by: Foxdie on December 21, 2003, 10:04:22 am
This is what I want to do, I want to play a small wav through the buzzer on the Zaurus whenever I press a specific key. I have tried a few methods but none have helped:

Code: [Select]
cat file.wav > /dev/dsp

That doesn\'t really work

Code: [Select]
mplayer file.wav

This kind of works but a). mplayer is too slow in starting up for my needs and . because the wav is so small (0.3 seconds, Stereo 16 bit 8000Hz Wave) and short it doesn\'t play the wav properly.

Anyone got any suggestions? Something like the keypress beep back in the original Sharp ROM would be good, but I need to control how many beeps.
Title: Fastest way to play a wav?
Post by: Foxdie on December 21, 2003, 11:05:02 am
Update: I\'ve also tried cat\'ing a .au file through it, and that doesn\'t work properly either (but it should do, it works fine on most other linux based systems)