# File lib/as_sound.rb, line 49
  def al_format
    if @channels==1 and @bps==8
      return AL::FORMAT_MONO8
    elsif @channels==1 and @bps==16
      return AL::FORMAT_MONO16
    elsif @channels==2 and @bps==8
      return AL::FORMAT_STEREO8
    elsif @channels==2 and @bps==16
      return AL::FORMAT_STEREO16
    else
      raise "Wav format not AL compatible"
    end
  end