|
|
@@ -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 ) { |
|
|
|