Logo Search packages:      
Sourcecode: lastfm version File versions  Download package

void RtAudio::openStream ( int  outputDevice,
int  outputChannels,
int  inputDevice,
int  inputChannels,
RtAudioFormat  format,
int  sampleRate,
int *  bufferSize,
int  numberOfBuffers 
)

A public method for opening a stream with the specified parameters.

An RtError is thrown if a stream cannot be opened.

Parameters:
outputDevice,: If equal to 0, the default or first device found meeting the given parameters is opened. Otherwise, the device number should correspond to one of those enumerated via the getDeviceInfo() method.
outputChannels,: The desired number of output channels. If equal to zero, the outputDevice identifier is ignored.
inputDevice,: If equal to 0, the default or first device found meeting the given parameters is opened. Otherwise, the device number should correspond to one of those enumerated via the getDeviceInfo() method.
inputChannels,: The desired number of input channels. If equal to zero, the inputDevice identifier is ignored.
format,: An RtAudioFormat specifying the desired sample data format.
sampleRate,: The desired sample rate (sample frames per second).
*bufferSize,: A pointer value indicating the desired internal buffer size in sample frames. The actual value used by the device is returned via the same pointer. A value of zero can be specified, in which case the lowest allowable value is determined.
numberOfBuffers,: A value which can be used to help control device latency. More buffers typically result in more robust performance, though at a cost of greater latency. A value of zero can be specified, in which case the lowest allowable value is used.

Definition at line 146 of file RtAudio.cpp.

{
  rtapi_->openStream( outputDevice, outputChannels, inputDevice,
                      inputChannels, format, sampleRate,
                      bufferSize, numberOfBuffers );
}


Generated by  Doxygen 1.6.0   Back to index