Function getDefaultInputDevice


#include <RtAudio.h>

unsigned int getDefaultInputDevice(void)


A function that returns the index of the default input device.

If the underlying audio API does not provide a "default device", or if no devices are available, the return value will be 0. Note that this is a valid device identifier and it is the client's responsibility to verify that a device is available before attempting to open a stream.


Lines 855-855 in RtAudio.h. Line 477 in RtAudio.h.

inline unsigned int RtAudio :: getDefaultInputDevice( void ) { return rtapi_->getDefaultInputDevice(); }

Add Discussion as Guest

Log in