Help with Sound Issue

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • shinyrory
    Forum Member
    • Sep 2006
    • 17

    Help with Sound Issue

    Hey everyone,

    i have several buttons that go to different pages within my project but because the buttons are in the same place on every page the audio plays twice when highlighted. Is there a way to once the button has been clicked to not allow any other sounds to play until the sound on the button that has jsut been clicked has finished? Hope this makes sense. Any help is much appreciated and need badly. Thank you
  • Eliminator
    Forum Member
    • Nov 2005
    • 135

    #2
    Hi,

    Try to add this to your button on (On Higlight):

    CurrentPos = Audio.GetCurrentPos(CHANNEL_EFFECTS);
    if CurrentPos < 1 then
    --Load your song
    end

    Like that if the song is playing it won't load again and if the song is not loaded or is stopped, the song will be launched.

    Good Luck,
    Eliminator

    Comment

    Working...
    X