Function getDefaultOutputDevice


#include <RtAudio.h>

unsigned int getDefaultOutputDevice(void)


A function that returns the index of the default output 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 856-856 in RtAudio.h. Line 467 in RtAudio.h.

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

Add Discussion as Guest

Log in