Function getDefaultOutputDevice

Synopsis

#include <RtAudio.h>

unsigned int getDefaultOutputDevice(void)

Description

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.

Source

Lines 874-874 in RtAudio.h. Line 480 in RtAudio.h.

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





Add Discussion as Guest

Log in