projects
/
rtaudio-cdist.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9d8c43
)
Fix a signed-unsigned comparison.
author
Stephen Sinclair
<radarsat1@gmail.com>
Tue, 22 Aug 2017 20:31:53 +0000
(17:31 -0300)
committer
Stephen Sinclair
<radarsat1@gmail.com>
Tue, 22 Aug 2017 20:31:53 +0000
(17:31 -0300)
RtAudio.cpp
patch
|
blob
|
history
diff --git
a/RtAudio.cpp
b/RtAudio.cpp
index 75c98405f05a389a35d735404ee20c2d1df9a104..603da0a163699d25b77512d19f505292e5d8d69d 100644
(file)
--- a/
RtAudio.cpp
+++ b/
RtAudio.cpp
@@
-9113,7
+9113,7
@@
bool RtApiOss :: probeDeviceOpen( unsigned int device, StreamMode mode, unsigned
}
\r
\r
// Verify the sample rate setup worked.
\r
- if ( abs( srate -
sampleRate ) > 100 ) {
\r
+ if ( abs( srate -
(int)sampleRate ) > 100 ) {
close( fd );
\r
errorStream_ << "RtApiOss::probeDeviceOpen: device (" << ainfo.name << ") does not support sample rate (" << sampleRate << ").";
\r
errorText_ = errorStream_.str();
\r