diff options
| author | Stephen Sinclair <radarsat1@gmail.com> | 2017-10-06 16:49:55 -0300 |
|---|---|---|
| committer | Stephen Sinclair <radarsat1@gmail.com> | 2017-10-06 16:50:03 -0300 |
| commit | 44e8c742d4fd088069888efe491ba16672e67d6b (patch) | |
| tree | 4f6c9425fe0fd53991310694b177a1de204ccad5 /RtAudio.cpp | |
| parent | 2e5704f2a69a3195fa06934dcf33dabba9777ecd (diff) | |
| parent | c3a34072169f06936a335715f735869e0363b025 (diff) | |
Merge pr96.
Diffstat (limited to 'RtAudio.cpp')
| -rw-r--r-- | RtAudio.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/RtAudio.cpp b/RtAudio.cpp index ddb423a..1d23516 100644 --- a/RtAudio.cpp +++ b/RtAudio.cpp @@ -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 ) { |
