Skip to content

Commit

Permalink
Bug fix in duplex.cpp when requested bufferFrames value is different …
Browse files Browse the repository at this point in the history
…from returned value.
  • Loading branch information
garyscavone committed May 10, 2020
1 parent 8c1610a commit 0a720ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/duplex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ 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 );
}
Expand All @@ -117,6 +116,7 @@ int main( int argc, char *argv[] )
// Test RtAudio functionality for reporting latency.
std::cout << "\nStream latency = " << adac.getStreamLatency() << " frames" << std::endl;

bufferBytes = bufferFrames * channels * sizeof( MY_TYPE );
try {
adac.startStream();

Expand Down

0 comments on commit 0a720ab

Please sign in to comment.