X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=tests%2Frecord.cpp;h=4bd9d30f304a495d5dfedd2019f0e7dd0a80e376;hb=12516be654cafb0f681174d1fd99b5f61e254307;hp=4457f938281f0a3da434714ea4b0299a4b304f8f;hpb=089a6da80694960318b86201b2fab3caa2680113;p=rtaudio-cdist.git diff --git a/tests/record.cpp b/tests/record.cpp index 4457f93..4bd9d30 100644 --- a/tests/record.cpp +++ b/tests/record.cpp @@ -13,26 +13,27 @@ #include #include #include +#include /* -typedef char MY_TYPE; +typedef char MY_TYPE; #define FORMAT RTAUDIO_SINT8 */ -typedef signed short MY_TYPE; +typedef signed short MY_TYPE; #define FORMAT RTAUDIO_SINT16 /* -typedef signed long MY_TYPE; +typedef S24 MY_TYPE; #define FORMAT RTAUDIO_SINT24 -typedef signed long MY_TYPE; +typedef signed long MY_TYPE; #define FORMAT RTAUDIO_SINT32 -typedef float MY_TYPE; +typedef float MY_TYPE; #define FORMAT RTAUDIO_FLOAT32 -typedef double MY_TYPE; +typedef double MY_TYPE; #define FORMAT RTAUDIO_FLOAT64 */ @@ -125,7 +126,7 @@ int main( int argc, char *argv[] ) try { adc.openStream( NULL, &iParams, FORMAT, fs, &bufferFrames, &input, (void *)&data ); } - catch ( RtError& e ) { + catch ( RtAudioError& e ) { std::cout << '\n' << e.getMessage() << '\n' << std::endl; goto cleanup; } @@ -147,7 +148,7 @@ int main( int argc, char *argv[] ) try { adc.startStream(); } - catch ( RtError& e ) { + catch ( RtAudioError& e ) { std::cout << '\n' << e.getMessage() << '\n' << std::endl; goto cleanup; }