Browse Source

Merge pr96.

tags/5.1.0
Stephen Sinclair 7 years ago
parent
commit
44e8c742d4
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      RtAudio.cpp

+ 2
- 1
RtAudio.cpp View File

@@ -4977,7 +4977,8 @@ void RtApiWasapi::wasapiThread()
}

if ( stream_.mode == INPUT ) {
convBuffSize = ( size_t ) ( stream_.bufferSize * captureSrRatio ) * stream_.nDeviceChannels[INPUT] * formatBytes( stream_.deviceFormat[INPUT] );
using namespace std; // for roundf
convBuffSize = ( size_t ) roundf( stream_.bufferSize * captureSrRatio ) * stream_.nDeviceChannels[INPUT] * formatBytes( stream_.deviceFormat[INPUT] );
deviceBuffSize = stream_.bufferSize * stream_.nDeviceChannels[INPUT] * formatBytes( stream_.deviceFormat[INPUT] );
}
else if ( stream_.mode == OUTPUT ) {


Loading…
Cancel
Save