mirror of
https://github.com/thestk/stk
synced 2026-01-11 20:11:52 +00:00
Bug fix in duplex.cpp
This commit is contained in:
@@ -104,6 +104,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 );
|
||||
}
|
||||
@@ -112,7 +113,7 @@ 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;
|
||||
|
||||
Reference in New Issue
Block a user