summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGary Scavone <gary@music.mcgill.ca>2011-02-17 21:26:23 +0000
committerStephen Sinclair <sinclair@music.mcgill.ca>2013-10-11 01:38:27 +0200
commit24a98a1971301e582dc56ef2c6ac94c342b674dd (patch)
tree8b9aa705b0fd522cd0231f79f25a6cbcde8f06b2 /tests
parent3a4fb410cf0be7a7f4fc3777a15b104d8091f3b5 (diff)
Various changes in preparation for release 4.0.8
including fix of MinGW ASIO compile problem (iasiothiscallresolver), OS-X problem handling device names in some languages (CFString conversion), small change to OS-X MUTEX lock location to avoid lockups, and correction to documentation regarding 24-bit data (should be lower 3 bytes, not upper 3 bytes).
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.in2
-rw-r--r--tests/duplex.cpp2
-rw-r--r--tests/playraw.cpp6
3 files changed, 3 insertions, 7 deletions
diff --git a/tests/Makefile.in b/tests/Makefile.in
index 6947676..0236fbe 100644
--- a/tests/Makefile.in
+++ b/tests/Makefile.in
@@ -49,7 +49,7 @@ clean :
$(RM) -fR *.dSYM
distclean: clean
- $(RM) Makefile
+ $(RM) -f Makefile
strip :
strip $(PROGRAMS)
diff --git a/tests/duplex.cpp b/tests/duplex.cpp
index 125b56e..938a7f8 100644
--- a/tests/duplex.cpp
+++ b/tests/duplex.cpp
@@ -53,7 +53,7 @@ int inout( void *outputBuffer, void *inputBuffer, unsigned int nBufferFrames,
// a simple buffer copy operation here.
if ( status ) std::cout << "Stream over/underflow detected." << std::endl;
- unsigned long *bytes = (unsigned long *) data;
+ unsigned int *bytes = (unsigned int *) data;
memcpy( outputBuffer, inputBuffer, *bytes );
return 0;
}
diff --git a/tests/playraw.cpp b/tests/playraw.cpp
index 5a5e7cd..3b7be76 100644
--- a/tests/playraw.cpp
+++ b/tests/playraw.cpp
@@ -26,11 +26,7 @@ typedef signed short MY_TYPE;
#define SCALE 32767.0
/*
-typedef signed long MY_TYPE;
-#define FORMAT RTAUDIO_SINT24
-#define SCALE 8388607.0
-
-typedef signed long MY_TYPE;
+typedef signed int MY_TYPE;
#define FORMAT RTAUDIO_SINT32
#define SCALE 2147483647.0