Antwort auf: Eigener Lautstärkeregler

Startseite Foren Deutsches LiveCode-Forum Eigener Lautstärkeregler Antwort auf: Eigener Lautstärkeregler

#19041
akrages
Teilnehmer

    Guten Tag.
    wie kann ich in dieses Script

    on mouseUp
       if (mobileSoundOnChannel("background") is empty) or (mobileSoundOnChannel("background") is "could not find channel") then
          put (specialFolderPath("resources") & "/sound/background.wav") into tPath
          put "background" into tChannelName
          put "looping" into tType
          mobilePlaySoundOnChannel tPath, tChannelName, tType
       else
          mobileStopPlayingOnChannel "background"
       end if
    end mouseUp

    noch ein
    if the environment = "mobile" then
    einfügen?