taptaudio.h File Reference


Detailed Description

Tapted's Audio Subsystem manager singleton.

Author:
Trent Apted <tapted@it.usyd.edu.au>
Revision
2
Date
2006-03-16 10:09:28 +1100 (Thu, 16 Mar 2006)

Definition in file taptaudio.h.

#include <string>

Include dependency graph for taptaudio.h:

Go to the source code of this file.

Classes

class  ASSample
 This is an AudioSystem Sample. More...
class  AudioSystem
 The audio system. More...

Enumerations

enum  AUDIO_BACKEND {
  AF_NOAUDIO = 0, AF_PORTAUDIO = 1, AF_JACKAUDIO = 2, AF_PORTAUDIO_OSS = 5,
  AF_PORTAUDIO_ALSA = 9, AF_PORTAUDIO_JACK = 13, AF_PORTAUDIO_MME = 17, AF_PORTAUDIO_ASIO = 21,
  AF_PORTAUDIO_AL = 25, AF_PORTAUDIO_BEOS = 29, AF_PORTAUDIO_WDMKS = 33, AF_PORTAUDIO_COREAUDIO = 37,
  AF_PORTAUDIO_SOUNDMANAGER = 41, AF_PORTAUDIO_DIRECTSOUND = 45, AF_PORTAUDIO_ALSA_BLOCK = 49, AF_PORTAUDIO_ABSOLUTE = 53
}
 Audio backends. More...
enum  AUDIO_FORMAT {
  AF_Default, AF_Float32, AF_Int16, AF_Int32,
  AF_Int24, AF_PackedInt24, AF_Int8, AF_UInt8,
  AF_CustomFormat
}
 Possible PCM Audio formats for the mixer. More...
enum  FILE_ENCODING {
  AF_ENC_WAV, AF_ENC_RAW, AF_ENC_OGG, AF_ENC_FLAC,
  AF_ENC_AU, AF_ENC_AIFF, AF_ENC_CAF, AF_MASK_FILE = 0x00ff,
  AF_SHIFT_FILE = 0, AF_ENC_PCM = 0x0000, AF_ENC_MLAW = 0x0100, AF_ENC_ALAW = 0x0200,
  AF_ENC_ADPCM = 0x0300, AF_ENC_DWVW = 0x0400, AF_ENC_VORBIS = 0x0500, AF_ENC_SPEEX = 0x0600,
  AF_MASK_ENCODING = 0x0f00, AF_SHIFT_ENCODING = 8, AF_ENC_PCM_AUDIOSYS = 0x0000, AF_ENC_PCM_UNSIGNED = 0x1000,
  AF_ENC_PCM_8 = 0x2000, AF_ENC_PCM_16 = 0x3000, AF_ENC_PCM_24 = 0x5000, AF_ENC_PCM_32 = 0x6000,
  AF_ENC_PCM_FLOAT = 0x7000, AF_ENC_PCM_DOUBLE = 0x8000, AF_MASK_PCM_FORMAT = 0xf000, AF_SHIFT_PCM_FORMAT = 12,
  AF_MASK_FILE_ENCODING = 0xffff
}
 Possible file encodings. More...


Enumeration Type Documentation

enum AUDIO_BACKEND
 

Audio backends.

Enumerator:
AF_NOAUDIO  Use a dummy backend.
AF_PORTAUDIO  Use Portaudio backend (default host).
AF_JACKAUDIO  Use JACK Audio Connection Toolkit backend.
AF_PORTAUDIO_ABSOLUTE  Device IDs specified for portaudio are absolute IDs.

Definition at line 73 of file taptaudio.h.

enum AUDIO_FORMAT
 

Possible PCM Audio formats for the mixer.

Enumerator:
AF_Default  Default format (Int16).
AF_Float32  32-bit floats
AF_Int16  16-bit signed ints
AF_Int32  32-bit signed ints
AF_Int24  NFI - not supported.
AF_PackedInt24  NFI - not supported.
AF_Int8  8-bit signed ints
AF_UInt8  8-bit unsigned ints (not supported)
AF_CustomFormat  Some custom format (not supported).

Definition at line 17 of file taptaudio.h.

enum FILE_ENCODING
 

Possible file encodings.

For loading, many others will magically work by using the magic bytes at the start of the file (and thanks to libsndfile). However for now, these are all I've been bothered to do mappings for when saving.

Enumerator:
AF_ENC_WAV  WAV File (defaults to PCM).
AF_ENC_RAW  RAW format (PCM).
AF_ENC_OGG  OGG File -- not yet implemented.
AF_ENC_FLAC  Compressed, lossless FLAC.
AF_ENC_AU  AU File (defaults to PCM).
AF_ENC_AIFF  AIFF File.
AF_ENC_CAF  Apple CAF File.
AF_MASK_FILE  Mask for file type.
AF_SHIFT_FILE  right bit-shift for file (header) type
AF_ENC_PCM  PCM encoding (default).
AF_ENC_MLAW  mu-law encoding
AF_ENC_ALAW  A-law encoding.
AF_ENC_ADPCM  ADPCM -- WAV or AU only, valid qualities are 24 (default), 32 or 40 (kbps).
AF_ENC_DWVW  DWVW -- AIFF or RAW only.
AF_ENC_VORBIS  Vorbis encoding (ogg) -- not yet implemented.
AF_ENC_SPEEX  Speex encoding (ogg) -- not yet implemented.
AF_MASK_ENCODING  Mask for encoding.
AF_SHIFT_ENCODING  right bit-shift for encoding
AF_ENC_PCM_AUDIOSYS  Use the same audio format as the currently running AudioSystem.
AF_ENC_PCM_UNSIGNED  Unsigned 8-bit -- WAV, AIFF and RAW only.
AF_ENC_PCM_8  Signed 8-bit integer -- all except WAV.
AF_ENC_PCM_16  Signed 16-bit integer.
AF_ENC_PCM_24  Signed 24-bit integer.
AF_ENC_PCM_32  Signed 32-bit integer.
AF_ENC_PCM_FLOAT  32-bit floating point
AF_ENC_PCM_DOUBLE  64-bit floating point
AF_MASK_PCM_FORMAT  Mask for PCM format.
AF_SHIFT_PCM_FORMAT  right bit-shift for pcm format
AF_MASK_FILE_ENCODING  Mask for file and encoding description.

Definition at line 35 of file taptaudio.h.


Generated on Thu Mar 16 11:30:43 2006 for TaptAudio by  doxygen 1.4.6