Results 1 to 3 of 3

Thread: How to play multiple sound effects?

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2007
    Location
    South-East England
    Posts
    1

    Post How to play multiple sound effects?

    I am making a small game in VB6 and I need to know how to play multiple sound effects.

    Right now I am using...
    Code:
    Private Declare Function sndPlaySound Lib "winmn.dll" Alias "sndPlaySoundA" _
    (ByVal ipszSoundName as String, ByVal uFlags As Long) As Long
    and triggering a sound with...
    Code:
    sndPlaySound "soundfile.wav",1
    This code only allows me to play one sound at a time.
    I need to know how to play multiple sounds at once, at least five.

    Thanks,

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: How to play multiple sound effects?

    VB is a single threaded development platform. You need it to multi-task beyond its capabilities.

  3. #3
    PowerPoster
    Join Date
    Feb 2002
    Location
    Canada, Toronto
    Posts
    5,802

    Re: How to play multiple sound effects?

    You probably need to do this in DirectSound

    I did something simmilar in this thread:
    http://www.vbforums.com/showthread.php?t=376046

    Look at the attachment in post #22

    [Edit]
    Also, take a look at my sound tutorial (though not finished) to learn more.
    Last edited by CVMichael; May 29th, 2007 at 03:13 PM.

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