summaryrefslogtreecommitdiff
path: root/tests/duplex.cpp
diff options
context:
space:
mode:
authorGary Scavone <gary@music.mcgill.ca>2016-09-06 12:16:47 -0400
committerGary Scavone <gary@music.mcgill.ca>2016-09-06 12:16:47 -0400
commit2697075ec56e365ecc20841cbfb5f98d4b79eb43 (patch)
tree4c5b8e17e4e7b3f1773d8ecc745a1090351a0087 /tests/duplex.cpp
parentafbfaa480dfbb76ccf4043c5935aa450c524d5b1 (diff)
Update (bug fix?) in duplex.cpp test program
Diffstat (limited to 'tests/duplex.cpp')
-rw-r--r--tests/duplex.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/duplex.cpp b/tests/duplex.cpp
index 06462f2..494e5ad 100644
--- a/tests/duplex.cpp
+++ b/tests/duplex.cpp
@@ -105,6 +105,7 @@ int main( int argc, char *argv[] )
RtAudio::StreamOptions options;
//options.flags |= RTAUDIO_NONINTERLEAVED;
+ bufferBytes = bufferFrames * channels * sizeof( MY_TYPE );
try {
adac.openStream( &oParams, &iParams, FORMAT, fs, &bufferFrames, &inout, (void *)&bufferBytes, &options );
}
@@ -113,8 +114,6 @@ int main( int argc, char *argv[] )
exit( 1 );
}
- bufferBytes = bufferFrames * channels * sizeof( MY_TYPE );
-
// Test RtAudio functionality for reporting latency.
std::cout << "\nStream latency = " << adac.getStreamLatency() << " frames" << std::endl;