EMIPLIB
Public Member Functions

MIPSDLAudioOutput Class Reference

An SDL audio output component. More...

#include <mipsdlaudiooutput.h>

Inheritance diagram for MIPSDLAudioOutput:
Inheritance graph
[legend]
Collaboration diagram for MIPSDLAudioOutput:
Collaboration graph
[legend]

List of all members.

Public Member Functions

bool open (int sampRate, int channels, MIPTime interval=MIPTime(0.020), MIPTime arrayTime=MIPTime(10.0))
 Initializes the component.
bool close ()
 Closes a previously opened SDL audio component.

Detailed Description

This component uses the SDL audio system to produce audio output. It accepts 16 bit native endian raw audio messages and produces no messages itself.


Member Function Documentation

bool MIPSDLAudioOutput::close ( )
bool MIPSDLAudioOutput::open ( int  sampRate,
int  channels,
MIPTime  interval = MIPTime(0.020),
MIPTime  arrayTime = MIPTime(10.0) 
)

Initializes the component.

Parameters:
sampRateThe sampling rate.
channelsThe number of channels.
intervalIntenally, audio data is written to the soundcard device each time inteval elapses. Note that this value may be changed somewhat.
arrayTimeThe amount of memory allocated to internal buffers, specified as a time interval. Note that this does not correspond to the amount of buffering introduced by this component.

The documentation for this class was generated from the following file: