Author Topic: Fastest way to play a wav?  (Read 2496 times)

Foxdie

  • Sr. Member
  • ****
  • Posts: 465
    • View Profile
    • http://trackmygps.co.uk
Fastest way to play a wav?
« 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.
Jason "Foxdie" Gaunt
HTC Universal G4 with 2GB SD card running Debian Titchy Linux
[img]http://trackmygps.co.uk/signatures/foxdie.gif\" border=\"0\" class=\"linked-sig-image\" /]
Click image to view my GPS tracker
Follow me on Twitter: @jasongaunt

Foxdie

  • Sr. Member
  • ****
  • Posts: 465
    • View Profile
    • http://trackmygps.co.uk
Fastest way to play a wav?
« Reply #1 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)
Jason "Foxdie" Gaunt
HTC Universal G4 with 2GB SD card running Debian Titchy Linux
[img]http://trackmygps.co.uk/signatures/foxdie.gif\" border=\"0\" class=\"linked-sig-image\" /]
Click image to view my GPS tracker
Follow me on Twitter: @jasongaunt