Class AS::WavFile
In: lib/as_sound.rb
Parent: Object

Simple WAV file loader. *NOTE:* Due to the simplicity of it‘s implementation, it may raise an execption on a WAV with extra tags. Run the WAV file through an editor to remove the extraneous tags.

Methods

al_format   new   read_data  

Constants

Error = Class.new(Exception)

Attributes

bps  [R] 
bytes  [R] 
channels  [R] 
data  [R] 
rate  [R] 

Public Class methods

Read in a WAV file from filename

Public Instance methods

Get the OpenAL buffer format type of this WAV. Raises an exception if the format cannot be mapped.

[Validate]