|
-
Oct 18th, 2003, 05:04 PM
#1
Thread Starter
Member
Background music in VB.NET
Can anyone tell me how to put a background music in a VB.NET prog ?
-
Oct 18th, 2003, 05:11 PM
#2
Lively Member
Your problem is not supported in version 1.1
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
DannyJoumaa
Advanced VB6 Programmer
Intermediate-Advanced VB .NET Programmer
Intermediate C# Programmer
Intermediate Win32 Developer
Beginner Mac OS X Developer
Contact: [email protected]
Favorite Sayings:
"Every time you open your mouth, you prove your an idiot."
"God is a programmer. Satan is a bug. Life is debugging."
-
Oct 18th, 2003, 05:17 PM
#3
Thread Starter
Member
I´m in trouble...
Does the Windows API has any function to play the music in VB.NET ?
-
Oct 18th, 2003, 05:23 PM
#4
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?
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Oct 18th, 2003, 06:35 PM
#5
Lively Member
Originally posted by MrPolite
danny j what is media sdk?
Windows SDKs
DannyJoumaa
Advanced VB6 Programmer
Intermediate-Advanced VB .NET Programmer
Intermediate C# Programmer
Intermediate Win32 Developer
Beginner Mac OS X Developer
Contact: [email protected]
Favorite Sayings:
"Every time you open your mouth, you prove your an idiot."
"God is a programmer. Satan is a bug. Life is debugging."
-
Oct 18th, 2003, 07:29 PM
#6
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?
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Oct 18th, 2003, 07:40 PM
#7
Lively Member
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?
Only the redistrobutable versions
DannyJoumaa
Advanced VB6 Programmer
Intermediate-Advanced VB .NET Programmer
Intermediate C# Programmer
Intermediate Win32 Developer
Beginner Mac OS X Developer
Contact: [email protected]
Favorite Sayings:
"Every time you open your mouth, you prove your an idiot."
"God is a programmer. Satan is a bug. Life is debugging."
-
Oct 19th, 2003, 12:56 AM
#8
Frenzied Member
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?
The next version of VS.NET will have media controls available.
-
Oct 19th, 2003, 01:17 AM
#9
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Oct 19th, 2003, 03:16 PM
#10
Thread Starter
Member
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
-
Oct 19th, 2003, 03:20 PM
#11
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
vs2003 doesnt support that either, 2004 does... still not out
why dont you use media sdk, the one danny j was talking about
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Oct 20th, 2003, 02:49 PM
#12
Thread Starter
Member
Ok i will do that.
MANY thanks to all of you
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|