Thats not really the point I was getting at... heh
you see, typing in a command such as aplay, or esdplay, is done by calling that program to run - essemtially it is a command line.
To do this, in programming, you do a fork() and then a form of exec() to run that file.
There is about a 1/4 of a second delay for this method to finally kick in and the sound to start playing... Thats bad for what I want it to do.
Now, I could use OpenAL, but, what I was getting at, is there an easy way to get it to play a sound file without having to go through some elaborate API/SDK???
In windows, you could just include windows.h and do a PlaySound() function, simple as that. In linux, is there a similar methodology without having to do the slow fork/exec??
Thanks for the reply tho,
JW
|