Sha256: cce97c1b2fe855869efb91f2a9e02702ee06213f10bd68e0185914c2867fd462

Contents?: true

Size: 500 Bytes

Versions: 2

Compression:

Stored size: 500 Bytes

Contents

module Joybox
  module Audio

    module_function

    def muted?
      SimpleAudioEngine.sharedEngine.mute
    end

    def mute
      SimpleAudioEngine.sharedEngine.mute = true
    end

    def unmute
      SimpleAudioEngine.sharedEngine.mute = false
    end

    def enable
      SimpleAudioEngine.sharedEngine.setEnabled(true)
    end

    def disable
      SimpleAudioEngine.sharedEngine.setEnabled(false)
    end

    def enabled?
      SimpleAudioEngine.sharedEngine.enabled
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
joybox-1.1.1 motion/joybox/audio/audio.rb
joybox-1.1.0 motion/joybox/audio/audio.rb