From b0080e69d64ce69e21c8ce1b22b1bb7f888f1e58 Mon Sep 17 00:00:00 2001 From: Gary Scavone Date: Tue, 7 Aug 2007 14:52:05 +0000 Subject: Check in of new version 4.0.0 distribution (GS). --- tests/probe.cpp | 86 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 tests/probe.cpp (limited to 'tests/probe.cpp') diff --git a/tests/probe.cpp b/tests/probe.cpp new file mode 100644 index 0000000..e756346 --- /dev/null +++ b/tests/probe.cpp @@ -0,0 +1,86 @@ +/******************************************/ +/* + probe.cpp + by Gary P. Scavone, 2001 + + Probe audio system and prints device info. +*/ +/******************************************/ + +#include "RtAudio.h" +#include +#include + +int main() +{ + // Create an api map. + std::map apiMap; + apiMap[RtAudio::MACOSX_CORE] = "OS-X Core Audio"; + apiMap[RtAudio::WINDOWS_ASIO] = "Windows ASIO"; + apiMap[RtAudio::WINDOWS_DS] = "Windows Direct Sound"; + apiMap[RtAudio::UNIX_JACK] = "Jack Client"; + apiMap[RtAudio::LINUX_ALSA] = "Linux ALSA"; + apiMap[RtAudio::LINUX_OSS] = "Linux OSS"; + apiMap[RtAudio::RTAUDIO_DUMMY] = "RtAudio Dummy"; + + std::vector< RtAudio::Api > apis; + RtAudio :: getCompiledApi( apis ); + + std::cout << "\nCompiled APIs:\n"; + for ( unsigned int i=0; i