diff options
| author | Gary Scavone <gary@music.mcgill.ca> | 2009-01-02 15:59:43 +0000 |
|---|---|---|
| committer | Stephen Sinclair <sinclair@music.mcgill.ca> | 2013-10-11 01:38:23 +0200 |
| commit | 287e68ea212610c225613876da4e643d43fc2aba (patch) | |
| tree | 5660f15c5fd5ac774a66b6a2cf9be8e755cb8b12 /tests | |
| parent | b96814b6bc97b32a590521ae8f401c40dac4cc7c (diff) | |
Updates to OS-X for multi-stream support (GS).
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/playraw.cpp | 4 | ||||
| -rw-r--r-- | tests/playsaw.cpp | 6 | ||||
| -rw-r--r-- | tests/record.cpp | 4 |
3 files changed, 7 insertions, 7 deletions
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 <enter> 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 */ |
