Can anyone tell me how to put a background music in a VB.NET prog ? :(
Printable View
Can anyone tell me how to put a background music in a VB.NET prog ? :(
Basically, Microsoft hasn't released any media handling in the .NET framework 1.1. So the only way you can do this is to
- Download the Media SDK
- Require your user to have a DLL installed accompaning your application.
- Start diggin for APIs
Does the Windows API has any function to play the music in VB.NET ?
there is one, but it's very limited. I used this once in VB6, I think you can only play wave files with it
Public Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long
btw will Evrette support playing basic sound files? does anyone know?
danny J what is media sdk?
Windows SDKsQuote:
Originally posted by MrPolite
danny j what is media sdk?
aha sounds cool, so it seems like it's a part of media player
hmm so it's free to use it in comercial applications?
Only the redistrobutable versionsQuote:
Originally posted by MrPolite
aha sounds cool, so it seems like it's a part of media player
hmm so it's free to use it in comercial applications?
The next version of VS.NET will have media controls available.Quote:
Originally posted by MrPolite
there is one, but it's very limited. I used this once in VB6, I think you can only play wave files with it
Public Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long
btw will Evrette support playing basic sound files? does anyone know?
danny J what is media sdk?
that's really cool haha:) I was reading somewhere that evrette will include 20 programming lauguages in visual studio :eek: seems fun:DQuote:
Originally posted by DevGrp
The next version of VS.NET will have media controls available.
Yes i just tried the function PlaySound with VB.NET and it works fine, the only problem is that the audio file has to be a very short one or it "blows"...
Unfortunately i don´t have VS.NET 2003 :cry:
vs2003 doesnt support that either, 2004 does... still not outQuote:
Originally posted by Peter Alien
Yes i just tried the function PlaySound with VB.NET and it works fine, the only problem is that the audio file has to be a very short one or it "blows"...
Unfortunately i don´t have VS.NET 2003 :cry:
why dont you use media sdk, the one danny j was talking about
Ok i will do that.
MANY thanks to all of you :)