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

CVideoAudioInput * CVideoDevice::GetAudioInput ( int  number = -1  )  const

Returns an audio input channel (source) object.

number The desired input channel; -1 for the current one
An object of type CVideoAudioInput, or NULL if number is out of range
This returns a pointer to a CVideoAudioInput object; when number is -1 (the default value), it returns the current input.

Definition at line 1056 of file VideoDevice.cc.

   if (number == -1) {
     if (CurrentAudioInput < 0)
       return NULL;
       return AudioInputs.at((uint)CurrentAudioInput); 
     return AudioInputs.at((uint) number);

Generated by  Doxygen 1.6.0   Back to index