Classes | |
class | RefCounted |
class | RefPtr |
class | RefImplementation |
class | File |
class | SampleSource |
class | LoopPointSource |
class | OutputStream |
class | Event |
Base interface for event-specific data passed to callbacks. More... | |
class | StopEvent |
class | Callback |
class | StopCallback |
class | AudioDevice |
class | SampleBuffer |
class | SoundEffect |
class | CDDevice |
class | MIDIStream |
class | MIDIDevice |
struct | FileFormatDesc |
Describes a file format that Audiere supports. More... | |
struct | AudioDeviceDesc |
Describes a supported audio device. More... | |
Namespaces | |
namespace | hidden |
Typedefs | |
typedef RefPtr< File > | FilePtr |
typedef RefPtr< SampleSource > | SampleSourcePtr |
typedef RefPtr< LoopPointSource > | LoopPointSourcePtr |
typedef RefPtr< OutputStream > | OutputStreamPtr |
typedef RefPtr< Event > | EventPtr |
typedef RefPtr< StopEvent > | StopEventPtr |
typedef RefPtr< Callback > | CallbackPtr |
typedef RefPtr< StopCallback > | StopCallbackPtr |
typedef RefPtr< AudioDevice > | AudioDevicePtr |
typedef RefPtr< SampleBuffer > | SampleBufferPtr |
typedef RefPtr< SoundEffect > | SoundEffectPtr |
typedef RefPtr< CDDevice > | CDDevicePtr |
typedef RefPtr< MIDIStream > | MIDIStreamPtr |
typedef RefPtr< MIDIDevice > | MIDIDevicePtr |
Enumerations | |
enum | SampleFormat { SF_U8, SF_S16 } |
enum | FileFormat { FF_AUTODETECT, FF_WAV, FF_OGG, FF_FLAC, FF_MP3, FF_MOD, FF_AIFF, FF_SPEEX } |
enum | EventType { ET_STOP } |
enum | SoundEffectType { SINGLE, MULTIPLE } |
Functions | |
template<typename T, typename U> | |
bool | operator== (const RefPtr< T > &a, const RefPtr< U > &b) |
template<typename T> | |
bool | operator== (const RefPtr< T > &a, const T *b) |
template<typename T> | |
bool | operator== (const T *a, const RefPtr< T > &b) |
template<typename T, typename U> | |
bool | operator!= (const RefPtr< T > &a, const RefPtr< U > &b) |
template<typename T> | |
bool | operator!= (const RefPtr< T > &a, const T *b) |
template<typename T> | |
bool | operator!= (const T *a, const RefPtr< T > &b) |
const char * | GetVersion () |
void | SplitString (std::vector< std::string > &out, const char *in, char delim) |
void | GetSupportedFileFormats (std::vector< FileFormatDesc > &formats) |
void | GetSupportedAudioDevices (std::vector< AudioDeviceDesc > &devices) |
int | GetSampleSize (SampleFormat format) |
AudioDevice * | OpenDevice (const char *name=0, const char *parameters=0) |
SampleSource * | OpenSampleSource (const char *filename, FileFormat file_format=FF_AUTODETECT) |
SampleSource * | OpenSampleSource (const FilePtr &file, FileFormat file_format=FF_AUTODETECT) |
SampleSource * | CreateTone (double frequency) |
SampleSource * | CreateSquareWave (double frequency) |
SampleSource * | CreateWhiteNoise () |
SampleSource * | CreatePinkNoise () |
LoopPointSource * | CreateLoopPointSource (const SampleSourcePtr &source) |
LoopPointSource * | CreateLoopPointSource (const char *filename, FileFormat file_format=FF_AUTODETECT) |
LoopPointSource * | CreateLoopPointSource (const FilePtr &file, FileFormat file_format=FF_AUTODETECT) |
OutputStream * | OpenSound (const AudioDevicePtr &device, const SampleSourcePtr &source, bool streaming=false) |
OutputStream * | OpenSound (const AudioDevicePtr &device, const char *filename, bool streaming=false, FileFormat file_format=FF_AUTODETECT) |
OutputStream * | OpenSound (const AudioDevicePtr &device, const FilePtr &file, bool streaming=false, FileFormat file_format=FF_AUTODETECT) |
SampleBuffer * | CreateSampleBuffer (void *samples, int frame_count, int channel_count, int sample_rate, SampleFormat sample_format) |
SampleBuffer * | CreateSampleBuffer (const SampleSourcePtr &source) |
SoundEffect * | OpenSoundEffect (const AudioDevicePtr &device, const SampleSourcePtr &source, SoundEffectType type) |
SoundEffect * | OpenSoundEffect (const AudioDevicePtr &device, const char *filename, SoundEffectType type, FileFormat file_format=FF_AUTODETECT) |
SoundEffect * | OpenSoundEffect (const AudioDevicePtr &device, const FilePtr &file, SoundEffectType type, FileFormat file_format=FF_AUTODETECT) |
File * | OpenFile (const char *filename, bool writeable) |
File * | CreateMemoryFile (const void *buffer, int size) |
void | EnumerateCDDevices (std::vector< std::string > &devices) |
CDDevice * | OpenCDDevice (const char *device) |
MIDIDevice * | OpenMIDIDevice (const char *device) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
An integral code representing a specific type of event.
|
|
Supported audio file formats.
|
|
Storage formats for sample data.
|
|
Defines the type of SoundEffect objects.
|
|
Creates a LoopPointSource from a source loaded from a file. Definition at line 1339 of file audiere.h. References CreateLoopPointSource(), and OpenSampleSource(). |
|
Creates a LoopPointSource from a source loaded from a file. Definition at line 1329 of file audiere.h. References CreateLoopPointSource(), and OpenSampleSource(). |
|
Create a LoopPointSource from a SampleSource. The SampleSource must be seekable. If it isn't, or the source isn't valid, this function returns 0. Definition at line 1320 of file audiere.h. References audiere::hidden::AdrCreateLoopPointSource(), and audiere::RefPtr< T >::get(). Referenced by CreateLoopPointSource(). |
|
Creates a File implementation that reads from a buffer in memory. It stores a copy of the buffer that is passed in. The File object does not take ownership of the memory buffer. When the file is destroyed, it will not free the memory.
Definition at line 1522 of file audiere.h. References audiere::hidden::AdrCreateMemoryFile(). |
|
Create a pink noise sample source. Pink noise is noise with equal power distribution among octaves (logarithmic), not frequencies.
Definition at line 1311 of file audiere.h. References audiere::hidden::AdrCreatePinkNoise(). |
|
Create a SampleBuffer object from a SampleSource.
Definition at line 1445 of file audiere.h. References audiere::hidden::AdrCreateSampleBufferFromSource(), and audiere::RefPtr< T >::get(). |
|
Create a SampleBuffer object using the specified samples and formats.
Definition at line 1424 of file audiere.h. References audiere::hidden::AdrCreateSampleBuffer(). |
|
Create a square wave with the specified frequency.
Definition at line 1291 of file audiere.h. References audiere::hidden::AdrCreateSquareWave(). |
|
Create a tone sample source with the specified frequency.
Definition at line 1280 of file audiere.h. References audiere::hidden::AdrCreateTone(). |
|
Create a white noise sample source. White noise is just random data.
Definition at line 1301 of file audiere.h. References audiere::hidden::AdrCreateWhiteNoise(). |
|
Generates a list of available CD device names.
Definition at line 1531 of file audiere.h. References audiere::hidden::AdrEnumerateCDDevices(). |
|
Get the size of a sample in a specific sample format. This is commonly used to determine how many bytes a chunk of PCM data will take.
Definition at line 1217 of file audiere.h. References audiere::hidden::AdrGetSampleSize(). |
|
Populates a vector of AudioDeviceDesc structs.
Definition at line 1195 of file audiere.h. References audiere::hidden::AdrGetSupportedAudioDevices(), and SplitString(). |
|
Populates a vector of FileFormatDesc structs.
Definition at line 1170 of file audiere.h. References audiere::hidden::AdrGetSupportedFileFormats(), and SplitString(). |
|
Returns the Audiere version string.
Definition at line 1136 of file audiere.h. References audiere::hidden::AdrGetVersion(). |
|
Opens the specified CD playback device.
Definition at line 1547 of file audiere.h. References audiere::hidden::AdrOpenCDDevice(). |
|
Open a new audio device. If name or parameters are not specified, defaults are used. Each platform has its own set of audio devices. Every platform supports the "null" audio device.
Definition at line 1233 of file audiere.h. References audiere::hidden::AdrOpenDevice(). |
|
Opens a default file implementation from the local filesystem.
Definition at line 1505 of file audiere.h. References audiere::hidden::AdrOpenFile(). |
|
Opens the specified MIDI synthesizer device.
Definition at line 1558 of file audiere.h. References audiere::hidden::AdrOpenMIDIDevice(). |
|
Opens a sample source from the specified file object. If the sound file cannot be opened, this factory function returns 0.
Definition at line 1266 of file audiere.h. References audiere::hidden::AdrOpenSampleSourceFromFile(), and audiere::RefPtr< T >::get(). |
|
Create a streaming sample source from a sound file. This factory simply opens a default file from the system filesystem and calls OpenSampleSource(File*).
Definition at line 1247 of file audiere.h. References audiere::hidden::AdrOpenSampleSource(). Referenced by CreateLoopPointSource(), OpenSound(), and OpenSoundEffect(). |
|
Calls OpenSound(AudioDevice*, SampleSource*) with a sample source created via OpenSampleSource(File* file). Definition at line 1397 of file audiere.h. References OpenSampleSource(), and OpenSound(). |
|
Calls OpenSound(AudioDevice*, SampleSource*) with a sample source created via OpenSampleSource(const char*). Definition at line 1383 of file audiere.h. References OpenSampleSource(), and OpenSound(). |
|
Try to open a sound buffer using the specified AudioDevice and sample source. If the specified sample source is seekable, it loads it into memory and uses AudioDevice::openBuffer to create the output stream. If the stream is not seekable, it uses AudioDevice::openStream to create the output stream. This means that certain file types must always be streamed, and therefore, OpenSound will hold on to the file object. If you must guarantee that the file on disk is no longer referenced, you must create your own memory file implementation and load your data into that before calling OpenSound.
Definition at line 1371 of file audiere.h. References audiere::hidden::AdrOpenSound(), and audiere::RefPtr< T >::get(). Referenced by OpenSound(). |
|
Calls OpenSoundEffect(AudioDevice*, SampleSource*, SoundEffectType) with a sample source created from the file. Definition at line 1489 of file audiere.h. References OpenSampleSource(), and OpenSoundEffect(). |
|
Calls OpenSoundEffect(AudioDevice*, SampleSource*, SoundEffectType) with a sample source created from the filename. Definition at line 1475 of file audiere.h. References OpenSampleSource(), and OpenSoundEffect(). |
|
Open a SoundEffect object from the given sample source and sound effect type.
Definition at line 1463 of file audiere.h. References audiere::hidden::AdrOpenSoundEffect(), and audiere::RefPtr< T >::get(). Referenced by OpenSoundEffect(). |
|
Definition at line 183 of file audiere.h. References audiere::RefPtr< T >::get(). |
|
Definition at line 178 of file audiere.h. References audiere::RefPtr< T >::get(). |
|
Definition at line 173 of file audiere.h. References audiere::RefPtr< T >::get(). |
|
Definition at line 167 of file audiere.h. References audiere::RefPtr< T >::get(). |
|
Definition at line 162 of file audiere.h. References audiere::RefPtr< T >::get(). |
|
Definition at line 157 of file audiere.h. References audiere::RefPtr< T >::get(). |
|
Definition at line 1141 of file audiere.h. Referenced by GetSupportedAudioDevices(), and GetSupportedFileFormats(). |