mirror of
https://github.com/thestk/stk
synced 2026-02-07 01:36:16 +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;
|
RtAudio::StreamOptions options;
|
||||||
//options.flags |= RTAUDIO_NONINTERLEAVED;
|
//options.flags |= RTAUDIO_NONINTERLEAVED;
|
||||||
|
|
||||||
|
bufferBytes = bufferFrames * channels * sizeof( MY_TYPE );
|
||||||
try {
|
try {
|
||||||
adac.openStream( &oParams, &iParams, FORMAT, fs, &bufferFrames, &inout, (void *)&bufferBytes, &options );
|
adac.openStream( &oParams, &iParams, FORMAT, fs, &bufferFrames, &inout, (void *)&bufferBytes, &options );
|
||||||
}
|
}
|
||||||
@@ -112,7 +113,7 @@ int main(int argc, char *argv[])
|
|||||||
exit( 1 );
|
exit( 1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
bufferBytes = bufferFrames * channels * sizeof( MY_TYPE );
|
|
||||||
|
|
||||||
// Test RtAudio functionality for reporting latency.
|
// Test RtAudio functionality for reporting latency.
|
||||||
std::cout << "\nStream latency = " << adac.getStreamLatency() << " frames" << std::endl;
|
std::cout << "\nStream latency = " << adac.getStreamLatency() << " frames" << std::endl;
|
||||||
|
|||||||
Reference in New Issue
Block a user