Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Need a dll for programatically play mp3 files (Read 2619 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Need a dll for programatically play mp3 files

hi everybody

i need a dll (preferred in .NET) to programatically play mp3 files from a .NET program. Documentation would be necessary.

Any help would be appreciated. 

thanks, kozi

Need a dll for programatically play mp3 files

Reply #1
The easiest method would probably be to just use DirectShow or ACM.

If you really want a seperate library try mpglib, which is also used in fb2k (included in latest lame source and fb2k SDK), or MAD.
"To understand me, you'll have to swallow a world." Or maybe your words.

Need a dll for programatically play mp3 files

Reply #2
thank you for the reply !

could you give some more hints about DirectShow ? I never worked with DirectX libraries, so a link, a documentation, an example related to mp3 playing with that would be a great help for me.

Thanks, kozi

Need a dll for programatically play mp3 files

Reply #3
If you have a MCI driver installed for Windows (Win2K and above have it already I suppose, due to WMP), then the simplest way is to use the mcixecute API.

http://msdn.microsoft.com/library/default...._mciexecute.asp

you may need to study the API for complete usage. eg: mciexecue("play c:\mysong.mp3") will play it and blah blah blah

use VC or VB dot net to write a Win32 DLL. I have always used VC++ 6.0, just export methods with the filename as an input parameter and add the mciexecute call within it.
There are only 10 types of people on this earth - those who know binary and those who don't.

Dell Inspiron 5100
P4 2.4 533 FSB,
512 MB / 40 GB,
Windows XP Home

Need a dll for programatically play mp3 files

Reply #4
You could use xAudio or BASS, they are not .NET code but I suggest you take a peek.
Dimitris