Function getDeviceCount


#include <RtAudio.h>

unsigned int getDeviceCount(void)


A public function that queries for the number of audio devices available.

This function performs a system query of available devices each time it is called, thus supporting devices connected after instantiation. If a system error occurs during processing, a warning will be issued.

Mentioned in

  • Advanced Tutorial / Error


Lines 853-853 in RtAudio.h. Line 444 in RtAudio.h.

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

Add Discussion as Guest

Log in