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

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

Returns an audio input channel (source) object.

Parameters:
number The desired input channel; -1 for the current one
Returns:
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;
     else
       return AudioInputs.at((uint)CurrentAudioInput); 
   }
   else
     return AudioInputs.at((uint) number);
}


Generated by  Doxygen 1.6.0   Back to index