DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Chrit Nathan Guest

    Play background wave sound and alert wave sound togather


    I 'm writing the game. I want to play background with wave sound. when I click
    some button in the form I can't play wave sound to alert when I click simultaneously.
    Help me please.

  2. #2
    Ray Mercer Guest

    Re: Play background wave sound and alert wave sound togather

    The standard Wave Audio APIs in Windows are not able to play more than one
    file at a time. You don't give any clue as to how you are playing sounds,
    but your choices would probably be something like this:

    Easy-
    Use Midi for the BG sound and waves for alerts/effects
    or
    Buy/find a 3rd party wavemix dll or api of somekind

    Harder-
    Use DirectSound in your app. (drawback is dist size and finding good
    examples for VB)

    Hard-
    Write your own wavemix support using "low level" APIs (not playsound).

    Hope this helps,
    Ray Mercer
    www.shrinkwrapvb.com


    "Chrit Nathan" <kritkul@yahoo.com> wrote in message
    news:394f1731$1@news.devx.com...
    >
    > I 'm writing the game. I want to play background with wave sound. when I

    click
    > some button in the form I can't play wave sound to alert when I click

    simultaneously.
    > Help me please.




  3. #3
    Mike D Sutton Guest

    Re: Play background wave sound and alert wave sound togather

    > Harder-
    > Use DirectSound in your app. (drawback is dist size and finding good
    > examples for VB)


    The SDK has examples of this as far as I know, you can download a copy at
    http://www.Microsoft.com/DirextX/
    Hope this helps,

    Mike



  4. #4
    Ray Mercer Guest

    Re: Play background wave sound and alert wave sound togather

    Mike,

    I said *good* examples ;-)

    Ray

    > The SDK has examples of this as far as I know, you can download a copy at
    > http://www.Microsoft.com/DirextX/





  5. #5
    Mike D Sutton Guest

    Re: Play background wave sound and alert wave sound togather

    > I said *good* examples ;-)

    Haha - Point taken

    Mike



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links