summaryrefslogtreecommitdiff
path: root/tests/teststops.cpp
diff options
context:
space:
mode:
authorjossgray <joss@jossgray.net>2016-12-05 19:01:02 +0000
committerjossgray <joss@jossgray.net>2016-12-05 19:01:02 +0000
commitbba842587eeac6a008af5732c55fb895246356ab (patch)
treeeed4996abd2c95af0229ce1cb103b16801cc8892 /tests/teststops.cpp
parent2697075ec56e365ecc20841cbfb5f98d4b79eb43 (diff)
Fix truncation from double to float warning.
Diffstat (limited to 'tests/teststops.cpp')
-rw-r--r--tests/teststops.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/teststops.cpp b/tests/teststops.cpp
index e24c064..b388554 100644
--- 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;
for ( i=0; i<nBufferFrames; i++ ) {
- if ( data->frameCounter % data->pulseCount == 0 ) sample = 0.9;
+ if ( data->frameCounter % data->pulseCount == 0 ) sample = 0.9f;
else sample = 0.0;
for ( j=0; j<data->channels; j++ )
*buffer++ = sample;