From 287e68ea212610c225613876da4e643d43fc2aba Mon Sep 17 00:00:00 2001 From: Gary Scavone Date: Fri, 2 Jan 2009 15:59:43 +0000 Subject: Updates to OS-X for multi-stream support (GS). --- tests/playraw.cpp | 4 ++-- tests/playsaw.cpp | 6 +++--- tests/record.cpp | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'tests') diff --git a/tests/playraw.cpp b/tests/playraw.cpp index a9e4db1..13e8b49 100644 --- a/tests/playraw.cpp +++ b/tests/playraw.cpp @@ -16,11 +16,13 @@ typedef char MY_TYPE; #define FORMAT RTAUDIO_SINT8 #define SCALE 127.0 +*/ typedef signed short MY_TYPE; #define FORMAT RTAUDIO_SINT16 #define SCALE 32767.0 +/* typedef signed long MY_TYPE; #define FORMAT RTAUDIO_SINT24 #define SCALE 8388607.0 @@ -28,13 +30,11 @@ typedef signed long MY_TYPE; typedef signed long MY_TYPE; #define FORMAT RTAUDIO_SINT32 #define SCALE 2147483647.0 -*/ typedef float MY_TYPE; #define FORMAT RTAUDIO_FLOAT32 #define SCALE 1.0; -/* typedef double MY_TYPE; #define FORMAT RTAUDIO_FLOAT64 #define SCALE 1.0; diff --git a/tests/playsaw.cpp b/tests/playsaw.cpp index c39bcb4..d477297 100644 --- a/tests/playsaw.cpp +++ b/tests/playsaw.cpp @@ -19,21 +19,21 @@ typedef signed long MY_TYPE; typedef char MY_TYPE; #define FORMAT RTAUDIO_SINT8 #define SCALE 127.0 +*/ typedef signed short MY_TYPE; #define FORMAT RTAUDIO_SINT16 #define SCALE 32767.0 +/* typedef signed long MY_TYPE; #define FORMAT RTAUDIO_SINT32 #define SCALE 2147483647.0 -*/ typedef float MY_TYPE; #define FORMAT RTAUDIO_FLOAT32 #define SCALE 1.0 -/* typedef double MY_TYPE; #define FORMAT RTAUDIO_FLOAT64 #define SCALE 1.0 @@ -155,12 +155,12 @@ int main( int argc, char *argv[] ) } char input; + //std::cout << "Stream latency = " << dac.getStreamLatency() << "\n" << std::endl; std::cout << "\nPlaying ... press to quit (buffer size = " << bufferFrames << ").\n"; std::cin.get( input ); try { // Stop the stream - std::cout << "Stream latency = " << dac.getStreamLatency() << "\n" << std::endl; dac.stopStream(); } catch ( RtError& e ) { diff --git a/tests/record.cpp b/tests/record.cpp index 7fb1317..22bcaac 100644 --- a/tests/record.cpp +++ b/tests/record.cpp @@ -15,21 +15,21 @@ /* typedef char MY_TYPE; #define FORMAT RTAUDIO_SINT8 +*/ typedef signed short MY_TYPE; #define FORMAT RTAUDIO_SINT16 +/* typedef signed long MY_TYPE; #define FORMAT RTAUDIO_SINT24 typedef signed long MY_TYPE; #define FORMAT RTAUDIO_SINT32 -*/ typedef float MY_TYPE; #define FORMAT RTAUDIO_FLOAT32 -/* typedef double MY_TYPE; #define FORMAT RTAUDIO_FLOAT64 */ -- cgit v1.2.3