Is there a general, non 3rd party control way to play all kinds of music files? I have seen code that plays wav files (PlaySound API), other code for MP3s (DirectShow)... Is there any general way to play them all or do I need the separate code for each one?
Thanks
Last edited by manavo11; Jul 3rd, 2005 at 05:30 PM.
Has someone helped you? Then you can Rate their helpful post.
I think windows media player covers most of them like wav and mp3..not sure about real audio. API function sndplay can't handle mp3 format as far as I know.
'the loader will correctly parse the following file formats:
'.WAV; .MID; .SEG; .RMI
'IT WONT LOAD MP3 files, if you require MP3 audio then look
'at the DirectShow8 tutorials.
DirectPlay is for networking, like the Winsock control. DirectSound covers wavs. DirectMusic covers midis. And DirectShow covers mp3s, mpegs, avis, and other media formats.
DirectX gives you more control over the media though. You can even put a movie as a texture on a polygon, and control how fast/slow the movie is playing, etc.
My DirectShow engine gives you nearly total control over the mp3s, which allows you to control the position, volume, balance, speed, play, stop, pause, etc.