Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Playing Wavs

Status
Not open for further replies.

THEMAN101

Programmer
Apr 29, 2003
44
0
0
US
Ok there is no C++ mac forum but mac is close to unix. I would like to play a sound file such as pa.wav or pa.anyotherfiletype. Is there a function that will play a sound file easily in Mac. Thanks
 
Does MAC have the ESD libraries installed?
{ or even available? }

It is pretty trivial to play a wave file using libesd on linux - it only takes about 2 or 3 lines of code.

I think I might have an example laying around somewhere if you are interested...
 
I dont know if mac has esd libs but i would like to see the code anyways.

Thanks ppc386
 
[tt]
#include <esd.h>
int main(int argc, char **argv){
esd_play_file(&quot;wav&quot;, argv[1], 0);
}
[/tt]


cc esdtest.c -o esdtest -lesd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top