summaryrefslogtreecommitdiff
path: root/tests/playraw.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/playraw.cpp')
-rw-r--r--tests/playraw.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/playraw.cpp b/tests/playraw.cpp
index a9e4db1..1ab1600 100644
--- a/tests/playraw.cpp
+++ b/tests/playraw.cpp
@@ -11,16 +11,20 @@
#include "RtAudio.h"
#include <iostream>
+#include <cstdlib>
+#include <cstring>
/*
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 +32,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;