projects
/
rtaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8021795
)
Round floats by using roundf in order to round correctly.
96/head
author
rehans
<rene@hansen-audio.de>
Tue, 5 Sep 2017 14:12:58 +0000
(16:12 +0200)
committer
rehans
<rene@hansen-audio.de>
Tue, 5 Sep 2017 14:12:58 +0000
(16:12 +0200)
RtAudio.cpp
patch
|
blob
|
history
diff --git
a/RtAudio.cpp
b/RtAudio.cpp
index f72c899835b4283403d02bfaae12e31e057a2bc1..b29cae97ba3125ea11643bbd3ea8c433d4941082 100644
(file)
--- a/
RtAudio.cpp
+++ b/
RtAudio.cpp
@@
-4974,7
+4974,7
@@
void RtApiWasapi::wasapiThread()
}
if ( stream_.mode == INPUT ) {
}
if ( stream_.mode == INPUT ) {
- convBuffSize = ( size_t ) ( stream_.bufferSize * captureSrRatio ) * stream_.nDeviceChannels[INPUT] * formatBytes( stream_.deviceFormat[INPUT] );
+ convBuffSize = ( size_t )
std::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 ) {
deviceBuffSize = stream_.bufferSize * stream_.nDeviceChannels[INPUT] * formatBytes( stream_.deviceFormat[INPUT] );
}
else if ( stream_.mode == OUTPUT ) {