Browse Source

Update (bug fix?) in duplex.cpp test program

tags/5.0.0
Gary Scavone 9 years ago
parent
commit
2697075ec5
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      tests/duplex.cpp

+ 1
- 2
tests/duplex.cpp View File

@@ -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;



Loading…
Cancel
Save