Play sound in a C program?

AgentEL

Golden Member
Jun 25, 2001
1,327
0
0
Does anyone know of any packages or code that will play a .wav file in a C program?
 

DaveSimmons

Elite Member
Aug 12, 2001
40,730
670
126
In Windows, DOS, mac, or linux?

For windows, msdn.microsoft.com might have an article or two. Google and google groups will certainly find something, www.codeproject.com might have something.
 

AgentEL

Golden Member
Jun 25, 2001
1,327
0
0
Originally posted by: DaveSimmons
In Windows, DOS, mac, or linux?

For windows, msdn.microsoft.com might have an article or two. Google and google groups will certainly find something, www.codeproject.com might have something.

It's on QNX6, close to *nix but real-time.
 

Barnaby W. Füi

Elite Member
Aug 14, 2001
12,343
0
0
QNX is posix compliant AFAIK, standard unix stuff tends to work fine on it.

Look into libao.

You could actually possibly just do system("cat foo.wav > /dev/dsp") ;)