Antwort auf: Eigener Lautstärkeregler

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

#19075
Torsten
Teilnehmer

    @Klaus: sorry für den Kommentar meinerseits, ichn hatte den ganzen Thread noch nicht gelesen.

    Wenn ich das richtig verstehe, hat er doch eigentlich alles schon am Anfang richtig gemacht, um zwischen mobile und IDE zu unterscheiden:

    on mouseUp pMouseButton
       if the environment = "mobile" then
          if (mobileSoundOnChannel("background") is empty) or (mobileSoundOnChannel("background") is "could not find channel") then
             put (specialFolderPath("engine") & "/sound/background.wav") into tPath
             put "background" into tChannelName
             put "looping" into tType --> looping Sound wird wiederholt gespielt, bis gestoppt wird "now" Sound wird nur 1x abgespielt
             mobilePlaySoundOnChannel tPath, tChannelName, tType
          end if
       else
          play audioClip "background.wav" looping
          set the playloudness to the value of fld "volume"
          ##set the playLoudNess of player "background" to 50
       end if
    end mouseUp

    Das Schema müsste wieder eingebaut werden, oder?

    LG
    Torsten