ERY.AgateLib.Audio Class Reference

Static class which contains basic functions for playing sound and music. This is analogous to the static Display class, but playing audio files is much less complicated. More...

List of all members.

Public Member Functions

delegate void AudioCoreEventDelegate ()
 Delegate type for events which are raised by this class.

Static Public Member Functions

static void Initialize (AudioTypeID audioType)
 Initializes the audio system by instantiating the driver with the given AudioTypeID. The audio driver must be registered with the Registrar class.
static void Dispose ()
 Disposes of the audio driver.
static void StopAll ()
 Stops all sound and music currently playing.
static void StopAllSounds ()
 Stops all sound effects playing. Music objects will continue playing.
static void StopAllMusic ()
 Stops all music currently playing. Sound objects will continue playing.
static double TransformByLog (double x)
 This is for use by drivers whose underlying technology does not provide a volume control which sounds linear.
static double TransformByExp (double x)
 This is for use by drivers whose underlying technology does not provide a volume control which sounds linear.
static void Update ()
 Updates audio information. There is no need to call this explicitly if you are calling Core.KeepAlive on a regular basis.

Static Public Attributes

static event AudioCoreEventDelegate DisposeAudio
 Event that is called when Display.Dispose() is invoked, to shut down the display system and release all resources.

Properties

static AudioImpl Impl [get]
 Gets the object which handles all of the actual calls to Audio functions.


Detailed Description

Static class which contains basic functions for playing sound and music. This is analogous to the static Display class, but playing audio files is much less complicated.


Member Function Documentation

static void ERY.AgateLib.Audio.Initialize ( AudioTypeID  audioType  )  [static]

Initializes the audio system by instantiating the driver with the given AudioTypeID. The audio driver must be registered with the Registrar class.

Parameters:
audioType 

static void ERY.AgateLib.Audio.Dispose (  )  [static]

Disposes of the audio driver.

static void ERY.AgateLib.Audio.StopAll (  )  [static]

Stops all sound and music currently playing.

static void ERY.AgateLib.Audio.StopAllSounds (  )  [static]

Stops all sound effects playing. Music objects will continue playing.

static void ERY.AgateLib.Audio.StopAllMusic (  )  [static]

Stops all music currently playing. Sound objects will continue playing.

delegate void ERY.AgateLib.Audio.AudioCoreEventDelegate (  ) 

Delegate type for events which are raised by this class.

static double ERY.AgateLib.Audio.TransformByLog ( double  x  )  [static]

This is for use by drivers whose underlying technology does not provide a volume control which sounds linear.

Transforms the input in the range 0 to 1 by a logarithm into the range of 0 to 1.

Parameters:
x 
Returns:

static double ERY.AgateLib.Audio.TransformByExp ( double  x  )  [static]

This is for use by drivers whose underlying technology does not provide a volume control which sounds linear.

Transforms the input in the range 0 to 1 by an exponential into the range of 0 to 1.

Parameters:
x 
Returns:

static void ERY.AgateLib.Audio.Update (  )  [static]

Updates audio information. There is no need to call this explicitly if you are calling Core.KeepAlive on a regular basis.


Member Data Documentation

event AudioCoreEventDelegate ERY.AgateLib.Audio.DisposeAudio [static]

Event that is called when Display.Dispose() is invoked, to shut down the display system and release all resources.


Property Documentation

AudioImpl ERY.AgateLib.Audio.Impl [static, get]

Gets the object which handles all of the actual calls to Audio functions.


The documentation for this class was generated from the following file:
AgateLib
Awesome Game and Tool Engine Library
SourceForge.net Logo