Advertisement

Dev'C++ and the PlaySound function

Started by March 08, 2001 06:24 AM
4 comments, last by PCI 23 years, 8 months ago
I read the antialasing (however you spell it) and wanted to use the PlaySound function. I add the library winmm in the project options but when I try to compile his game code it gives me compiling errors about GetTime and SND_SYNC. Anyone know how to fix this? I presume that its another Dev''C++ problem or am I doing something wrong? Thanks for the help
You must also include mmsystem.h
Advertisement
Thanks mate, it works now. But I can only get it to load .wav files like in the tutorial. I changed the file to a mp3 and a midi and it doesn''t play it. Is there another call I can use for this. Midi is probably more important than mp3.
Thanks again
I do not think that you will find some easy functions to play midi and streaming mp3 in the win32 API. The most popular solution seems to be using some other library for that.
Does anyone know of any good sound library thats easy to use and where I could get it? I''ll have a search about on the search engines anyway.
Cheers
www.fmod.org



This topic is closed to new replies.

Advertisement