Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

ArkSoundCore::Output Class Reference

List of all members.

Public Member Functions

 Output ()
bool initialize ()
void uninitialize ()
bool connect (Sound *sound, AudioUnitElement &elem)
bool connect (ArkAudioUnit *au, AudioUnitElement &elem)
bool disconnect (AudioUnitElement elem)

Static Public Member Functions

static OSStatus SoundPlayerCallback (void *inRefCon, AudioUnitRenderActionFlags *ioActionFlags, const AudioTimeStamp *inTimeStamp, UInt32 inBusNumber, UInt32 inNumberFrames, AudioBufferList *ioData)

Private Attributes

ArkAudioUnitoutput
ArkAudioUnitmixer
vector< int > freePorts

Static Private Attributes

static unsigned outputRate = 0

Detailed Description

Output Aggregates all the neccessary components to create a core audio setup with an output and mixer, along with methods to connect sounds.


Constructor & Destructor Documentation

ArkSoundCore::Output::Output  )  [inline]
 


Member Function Documentation

bool ArkSoundCore::Output::connect ArkAudioUnit au,
AudioUnitElement &  elem
[inline]
 

connect Hackish method to connect the passed AudioUnit to any available mixer port.

Parameters:
au The audio unit to connect
elem A reference to 'return' the port the unit is connected to
Returns:
True if a connection was made
See also:
disconnect()

bool ArkSoundCore::Output::connect Sound sound,
AudioUnitElement &  elem
[inline]
 

connect Hackish method to connect the passed sound to any available mixer port.

Parameters:
player The sound player to connect
elem A reference to 'return' the port the player is connected to
Returns:
True if a connection was made
See also:
disconnect()

bool ArkSoundCore::Output::disconnect AudioUnitElement  elem  )  [inline]
 

disconnect Disconnnects the mixer at port elem.

Parameters:
elem The port to disconnect, use the elem received from a connect() call
Returns:
True if the port was disconnected

bool ArkSoundCore::Output::initialize  )  [inline]
 

initialize Sets up the core audio system, by creating an output and mixer, attaching them, and taking note of available mixer ports.

Returns:
True if initialized successfully
See also:
uninitialize()

static OSStatus ArkSoundCore::Output::SoundPlayerCallback void *  inRefCon,
AudioUnitRenderActionFlags *  ioActionFlags,
const AudioTimeStamp *  inTimeStamp,
UInt32  inBusNumber,
UInt32  inNumberFrames,
AudioBufferList *  ioData
[inline, static]
 

CoreAudioSoundPlayerCallback A core audio callback function to connect SoundPlayer instances to a core audio graph.

void ArkSoundCore::Output::uninitialize  )  [inline]
 

uninitialize Uninitializes the core audio system setup in initialize().

See also:
initialize()


Member Data Documentation

vector<int> ArkSoundCore::Output::freePorts [private]
 

ArkAudioUnit* ArkSoundCore::Output::mixer [private]
 

ArkAudioUnit* ArkSoundCore::Output::output [private]
 

unsigned ArkSoundCore::Output::outputRate = 0 [static, private]
 


The documentation for this class was generated from the following file:
Generated on Tue Sep 6 14:54:38 2005 for Arkonnekt Sound by  doxygen 1.4.4