Vb6 Sounds

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • H

    #1

    Vb6 Sounds

    Hi Guys,

    I am using the PlaySound to play .wav files in my application. Eg.

    a = PlaySound(App.P ath & chip_sound, SND_ASYNC)

    Is it possible to play two sounds at the same time? Everytime the 2nd sound
    is started the first sound is automatically stopped..

    Thanks!


  • The Grim Reaper

    #2
    Re: Vb6 Sounds

    In a word, no. The function can stop currently playing sounds to play the
    sound you specify, or it can check if there's already a sound playing, and
    if it is, not play the new sound. Search on microsoft.com for PlaySound for
    a full explanation of the flags.

    I haven't actually got round to adding any sounds to my games yet... but I
    plan to! The first place I'd look for this sort of task is game programming
    sites. Maybe you could consider using DirectSound?? Depending on the scope
    of your application, obviously.
    _______________ _______________ _____
    The Grim Reaper

    "H" <H@opijpoijpoij .com> wrote in message
    news:X9adnQbgTs zQjW3dSa8jmA@ka roo.co.uk...[color=blue]
    > Hi Guys,
    >
    > I am using the PlaySound to play .wav files in my application. Eg.
    >
    > a = PlaySound(App.P ath & chip_sound, SND_ASYNC)
    >
    > Is it possible to play two sounds at the same time? Everytime the 2nd[/color]
    sound[color=blue]
    > is started the first sound is automatically stopped..
    >
    > Thanks!
    >
    >[/color]


    Comment

    Working...