# File lib/rubygame/sound.rb, line 73 def load( filename ) Rubygame.open_audio sound = SDL::Mixer.LoadWAV( filename ) if( sound.pointer.null? ) raise( Rubygame::SDLError, "Could not load Sound file '%s': %s"% [filename, SDL.GetError()] ) end return new( sound ) end