Sha256: 92c8e9f7d9fa2b97cf929c393b49eeb32fcbb63a271aba402779e0bffea405b9

Contents?: true

Size: 471 Bytes

Versions: 2

Compression:

Stored size: 471 Bytes

Contents

# Copyright (C) 2004-2007 Kouichirou Eto, All rights reserved.
# License: Ruby License

require 'sgl/bass'

module SGL
  def useSound()	$__a__.useSound;	end
  def loadSound(*a)	$__a__.loadSound(*a)	end
  def stopSound(*a)	$__a__.stopAll(*a)	end

  class Application
    def useSound
      bass = Bass::BassLib.instance
    end

    def loadSound(file)
      return Bass::Sample.new(file)
    end

    def stopSound
      Bass::BassLib.instance.stop_all
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sgl-0.4.0 lib/sgl/sgl-sound.rb
sgl-1.0.0 lib/sgl/sgl-sound.rb