0
0
i think you will find you do use c# directly otherwise what language are you using?with c# being a managed language i wouldn't recomend unmanaged direct x although nBass is quite good but lack of documentation
0
its real easy. i dont use c# directly. i use either directShow, a part of directX, or nBASS, a sound liberary written in c#. you can find them both on www.codeproject.com . just type in their names in the search box and you should get them.hopw this is useful
0
hey,
i have written an mp3 player in c#. i use managed directx version 9 and it could not be simpler. You pass a path name to a newly created Audio object and call its .play() method. There are methods like stop(), pause() , etc. It's all very simple. You can download the directx SDK from the microsoft website (bout 165MB download) or simply email me and i can send you the DLL files. After that you can get the documentation from microsoft.com
Any questions or queries just contact me,
Sailor
0
Okay, I got the same when I tested it.
Did you set the "player.FileName" or "player.Open()" as I found both gave an error. I would suggest looking through MSDN online and seeing what they say about the MediaPlayer Libraries.
Sorry I can't be of more help, but if I find the answer I will post it here.
0
ok i got it but it's not perfect, i got an error when i launch the programm
Error is on player.Play()
PS : no, i'm not new to programming but it's the first time i used OCX
0
Declare the AxMediaPlayer
z.B.
AxMediaPlayer player = AxMediaPlayer.AxMediaPlayer;
to play an MP3:
player.FileName = ;
Do you know VB or are you new to programming?
Lee
0
yok, but it's in Visual Basic and i can't find the part which allow to play MP3 files ......
0
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?lngWId=10&txtCodeId=1593
I have found the article, it's in vb.net, but it's not hard to translate.
I hope this helps you,
Lee
0
yes, but it doesn't help me :-\
0
There's a search feature in the forums. ;)
http://216.26.160.137/Forums/AspNetForums20/ShowPost.aspx?PostID=2769
One topic is enough.
0
I seem to remember seeing something about this on Planetsource.com, but not sure where.
Lee