GE Lua Documentation

Press F to search!

getChannelVolume

Definition


-- @/=[C]:-1
function getChannelVolume(...)

Callers

@/lua/ge/extensions/flowgraph/nodes/audio/fade.lua
  if self.channel then
    Engine.Audio.setChannelVolume(self.channel, Engine.Audio.getChannelVolume(self.channel, false), true)
  end
  local duration = math.max(0, self.pinIn.duration.value or 1)
  self.pinOut.volume.value = Engine.Audio.getChannelVolume(self.channel, true) -- actual volume value
      if self.mode ~= 0 then
        self.origVolume = Engine.Audio.getChannelVolume(self.channel, true)
        if self.mode == -1 then
        else
          self.targetVolume = self.pinIn.volumeMax.value or Engine.Audio.getChannelVolume(self.channel, false)
        end
@/lua/ge/extensions/editor/api/core.lua
  if muteIt or muteIt == nil then
    editor.currentGameAudioVolume = Engine.Audio.getChannelVolume("AudioChannelMaster", false)
    Engine.Audio.setChannelVolume("AudioChannelMaster", 0.0)