How to play MP3 in c#
-
Sunday, May 14, 2006 6:09 PM
hi everyone, please help me.
i already refered a lot documents and samples to tell me how to
play a mp3 file in c#.but these files only tell me how to play a file.
actually i already downloaded the mp3 file and save to a byte array
so i need to play the content of the mp3 file in byte array.
of course i can save the data to file then play it,but because of some
other reasons i can not do it in this way.i must play directly from array
not from a file. i hope you can give me some tips,to provide source code is better,more detail more better.
thanks a lot
All Replies
-
Monday, May 15, 2006 12:12 AMModerator
Take a look at this and see if it helps:
http://www.codeproject.com/cs/media/cswavplay.asp?df=100&forumid=13779&exp=0&fr=26&select=736865
The thing I dont understand is that what problems are you facing if you play the mp3 directly?
You can launch or embed WMP10 (using the WMP10SDK) in your application and then tell it to play the file through that, or you could use the DirectX SDK to play audio via DirectX in your application.
hope it helps!
-
Monday, May 15, 2006 10:44 AMModerator
-
Tuesday, May 16, 2006 5:14 PM
yes,when i played the mp3 directly i got trouble.
if there is a mp3 file such as c:\a.mp3,i can play it no problem.
but now i already downloaded the content of the mp3 file from host.
i use a byte array to save these data.i can save these data to a file such as c:\b.mp3 then i can play it.but because of other reasons i can not do
it in this way.i must play these data from array directly.
-
Tuesday, May 16, 2006 7:21 PMModeratorwhy dont you just stream it and play it in WMP embedded?
-
Wednesday, May 17, 2006 6:51 AM
-
Saturday, July 12, 2008 6:31 AM
Hey, I need to develop a audio player which support .mp3 & .aac audio stream data along with Equalizer in C#. Using Audiere is possible, and also could share the C# wrapper of Audiere with me. Please help me guys.
thx in advance.
- Edited by Biltu Saturday, July 12, 2008 6:44 AM streaming audio
-
Friday, November 28, 2008 10:00 PMI would also be interested in the wrapper. No sense in reinventing the wheel! :)
-
Sunday, July 19, 2009 8:08 AMhi all how to play directly mp3 byte from stream
thanks- Changed Type Nishant SivakumarModerator Sunday, July 19, 2009 5:55 PM It's a question clearly.
- Merged by Roahn LuoModerator Wednesday, July 22, 2009 8:11 AM the same issue.
-
Sunday, July 19, 2009 5:49 PMThis is not discussion, if you want answer to your question, then change thread type from discussion to question by click on change type. The reason why no one reply to your question was most of us tend to ignore discussion.
kaymaf
I hope this helps, if that is what you want, just mark it as answer so that we can move on -
Sunday, July 19, 2009 5:56 PMModerator
hi all how to play directly mp3 byte from stream
thanks
See this thread :
http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/3dbfb9a3-4e14-41d1-afbb-1790420706fe
http://blog.voidnish.com -
Thursday, December 24, 2009 8:29 PM
hi all how to play directly mp3 byte from stream
thanks
See this thread :
http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/3dbfb9a3-4e14-41d1-afbb-1790420706fe
http://blog.voidnish.com
That's funny. :)

