Results 1 to 12 of 12

Thread: Background music in VB.NET

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2003
    Location
    Portugal
    Posts
    49

    Unhappy Background music in VB.NET

    Can anyone tell me how to put a background music in a VB.NET prog ?

  2. #2
    Lively Member
    Join Date
    Aug 2003
    Location
    When?!?!
    Posts
    108

    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."

  3. #3

    Thread Starter
    Member
    Join Date
    Oct 2003
    Location
    Portugal
    Posts
    49

    I´m in trouble...

    Does the Windows API has any function to play the music in VB.NET ?

  4. #4
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    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!!

  5. #5
    Lively Member
    Join Date
    Aug 2003
    Location
    When?!?!
    Posts
    108
    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."

  6. #6
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    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!!

  7. #7
    Lively Member
    Join Date
    Aug 2003
    Location
    When?!?!
    Posts
    108
    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."

  8. #8
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    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.

  9. #9
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    Originally posted by DevGrp
    The next version of VS.NET will have media controls available.
    that's really cool haha I was reading somewhere that evrette will include 20 programming lauguages in visual studio seems fun
    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!!

  10. #10

    Thread Starter
    Member
    Join Date
    Oct 2003
    Location
    Portugal
    Posts
    49
    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

  11. #11
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    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!!

  12. #12

    Thread Starter
    Member
    Join Date
    Oct 2003
    Location
    Portugal
    Posts
    49
    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
  •  



Click Here to Expand Forum to Full Width