OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Fastest way to play a wav?
Foxdie
post Dec 21 2003, 07:04 AM
Post #1





Group: Admin
Posts: 465
Joined: 8-November 03
From: Birmingham, United Kingdom
Member No.: 875



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
cat file.wav > /dev/dsp


That doesn't really work

CODE
mplayer file.wav


This kind of works but a). mplayer is too slow in starting up for my needs and cool.gif. 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.
Go to the top of the page
 
+Quote Post
Foxdie
post Dec 21 2003, 08:05 AM
Post #2





Group: Admin
Posts: 465
Joined: 8-November 03
From: Birmingham, United Kingdom
Member No.: 875



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)
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 18th September 2014 - 05:47 AM