class_docstr: An AIFF, WAV, or Au file that can be read by the Python standard
  library modules ``wave``, ``aifc``, and ``sunau``.
class_docstr_tok: ["An","AIFF",",","WAV",",","or","Au","file","that","can","be","read","by","the","Python","standard","library","modules","``","wave","``",",","``","aifc","``",",","and","``","sunau","``","."]
code: def __init__(self, filename):
      self._fh = open(filename, "rb")
  
      try:
          self._file = aifc.open(self._fh)
      except aifc.Error:
          # Return to the beginning of the file to try the next reader.
          self._fh.seek(0)
      else:
          self._needs_byteswap = True
          self._check()
          return
  
      try:
          self._file = wave.open(self._fh)
      except wave.Error:
          self._fh.seek(0)
          pass
      else:
          self._needs_byteswap = False
          self._check()
          return
  
      try:
          self._file = sunau.open(self._fh)
      except sunau.Error:
          self._fh.seek(0)
          pass
      else:
          self._needs_byteswap = True
          self._check()
          return
  
      # None of the three libraries could open the file.
      self._fh.close()
      raise UnsupportedError()
  
imports: import aifc
  import audioop
  import struct
  import sunau
  import wave
  from .exceptions import DecodeError
  from .base import AudioFile
label_desc: Use image node_id 1 to create a new RawAudioFile object from inherited base classes: AudioFile with example: obj = RawAudioFile(filename)