-
Play Mp3 in .net
Hello,
I'm a student IT at university I Want to build an mp3 player in vb.net.
In java there is a class you can import to play mp3 files. In vb.net I'ven't find such a thing so I've no idea who to make an mp3 file play.
Is there anybody who can give me directions???
Who can I make such a programm. On the net i've found some programs but they all use an dll file and I want to write my own methods to play mp3 files.
I've also found something about blade but i'ven't found a dll that can be imported as reference in vb.net.
Please help
ps Excuse me for my bad english. It's just base english i picked up at school.
-
Re: Play Mp3 in .net
I have been struggling to do the same thing... I think you have to use an external api. I found a free one; however, it lacks support for vb.net. Tell me what you dig up..................
-
Re: Play Mp3 in .net
i've found a dll file ...
rspmp3player1.dll
it can be used to play mp3 files ...
I'll set the prog online ....
http://users.pandora.be/tim.dehaen/prog/
Download the zipfile ...
But i'm dutch speaking so my variables and some words on my programm are in dutch but i think you can do something with the sourcecode ...
you can do also a google search
http://www.google.be/search?hl=nl&q=...G=Zoeken&meta=
You can find there some sites with information but ... i"m still learning vb.net and it's more for pro ... there's a topic on this forum that deals with .net and blade but i couldn't understand who i've to import the blakeEnc.dll file ...
-
Re: Play Mp3 in .net
-
Re: Play Mp3 in .net
already been there ...
Doesn"t satify my needs ...
There's no open source code concerning the playing of the mp3 file ...
it's also incapculated in an dll ...
I really want to know what's behind that dll file ...
Who does it encodes the mp3 file ...
If i'm capable of understanding that, i may be capable of implementing it in a programm ...
And me mp3player is also with a dll file ... the first version was written with the dll file from the mp3player2 that can be found on that page!
-
Re: Play Mp3 in .net
well there is NO direct way to just play a sound file (this is coming in .net 2005 though)
here is code from allapi.net, basically for now, you need to use API to do it, or a 3d party dll/code
Code:
Private Const SND_APPLICATION = &H80 ' look for application specific association
Private Const SND_ALIAS = &H10000 ' name is a WIN.INI [sounds] entry
Private Const SND_ALIAS_ID = &H110000 ' name is a WIN.INI [sounds] entry identifier
Private Const SND_ASYNC = &H1 ' play asynchronously
Private Const SND_FILENAME = &H20000 ' name is a file name
Private Const SND_LOOP = &H8 ' loop the sound until next sndPlaySound
Private Const SND_MEMORY = &H4 ' lpszSoundName points to a memory file
Private Const SND_NODEFAULT = &H2 ' silence not default, if sound not found
Private Const SND_NOSTOP = &H10 ' don't stop any currently playing sound
Private Const SND_NOWAIT = &H2000 ' don't wait if the driver is busy
Private Const SND_PURGE = &H40 ' purge non-static events for task
Private Const SND_RESOURCE = &H40004 ' name is a resource name or atom
Private Const SND_SYNC = &H0 ' play synchronously (default)
Private Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA" (ByVal lpszName As String, ByVal hModule As Long, ByVal dwFlags As Long) As Long
Private Sub Form_Load()
'KPD-Team 2000
'URL: http://www.allapi.net/
'E-Mail: [email protected]
PlaySound "C:\WINDOWS\MEDIA\TADA.WAV", ByVal 0&, SND_FILENAME Or SND_ASYNC
End Sub
im pretty sure this works with MP3 as well...
-
Re: Play Mp3 in .net
Is it possible to play 3 mp3 in 1 player using DirectSound ?
-
Re: Play Mp3 in .net
yeah I am pretty sure you can, although it would require your project to reference directx. Most people have directx already because so many apps require it though
-
Re: Play Mp3 in .net
i found an audio library called bass that I hope to use. If you scroll down they have a vb.net port, and some sample code....
http://www.un4seen.com/
-
Re: Play Mp3 in .net
so anyone using directx 9 for the reference? I have download it but doesn't know whehther it install correctly because the reference i saw there is directx8. Is it directx9 reference in a different name?
-
Re: Play Mp3 in .net
Who can I use directx to play mp3 files?
that Api that kleinma suggested isn't usefull for mp3 files :(