projects
/
rtaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2697075
)
Fix truncation from double to float warning.
author
jossgray
<joss@jossgray.net>
Mon, 5 Dec 2016 19:01:02 +0000
(19:01 +0000)
committer
jossgray
<joss@jossgray.net>
Mon, 5 Dec 2016 19:01:02 +0000
(19:01 +0000)
tests/teststops.cpp
patch
|
blob
|
history
diff --git
a/tests/teststops.cpp
b/tests/teststops.cpp
index e24c06490ab0877b8ebfcf7500c00ba0404459a5..b388554a77d9a9f6f1ac821403ab4f254af7b913 100644
(file)
--- a/
tests/teststops.cpp
+++ b/
tests/teststops.cpp
@@
-63,7
+63,7
@@
int pulse( void *outputBuffer, void * /*inputBuffer*/, unsigned int nBufferFrame
if ( status ) std::cout << "Stream over/underflow detected!" << std::endl;
\r
\r
for ( i=0; i<nBufferFrames; i++ ) {
\r
- if ( data->frameCounter % data->pulseCount == 0 ) sample = 0.9;
\r
+ if ( data->frameCounter % data->pulseCount == 0 ) sample = 0.9
f
;
\r
else sample = 0.0;
\r
for ( j=0; j<data->channels; j++ )
\r
*buffer++ = sample;
\r