Hi.
I want to build a basic MP3 playing program without using DirectX functions. What’s the best way to do this? Please give me some tips.
Thanks.
Hi.
I want to build a basic MP3 playing program without using DirectX functions. What’s the best way to do this? Please give me some tips.
Thanks.
"...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers
You can use mci:
For some idea of the commands you can use, see this MP3 player that uses MCI:Code:#include <windows.h> #include <stdio.h> #include <stdlib.h> #if defined(_MSC_VER) || defined(__BORLANDC__) #pragma comment(lib, "winmm.lib") #endif int main(void) { mciSendString("Play welcome.mp3", NULL, 0, NULL); //mciSendString("Play welcome.mp3 from 10 to 10000", NULL, 0, NULL); getchar(); return EXIT_SUCCESS; }
http://visumod.freeshell.org/mp3player/mp3player.html
or this one:
http://www.basicguru.com/files/abc/a...M09/sonido.bas
or search:
http://www.google.com/search?q=mcisendstring%20mp3
or read the documentation:
http://msdn.microsoft.com/library/de..._win32_mci.asp