From bba842587eeac6a008af5732c55fb895246356ab Mon Sep 17 00:00:00 2001 From: jossgray Date: Mon, 5 Dec 2016 19:01:02 +0000 Subject: Fix truncation from double to float warning. --- tests/teststops.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/teststops.cpp') 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; iframeCounter % data->pulseCount == 0 ) sample = 0.9; + if ( data->frameCounter % data->pulseCount == 0 ) sample = 0.9f; else sample = 0.0; for ( j=0; jchannels; j++ ) *buffer++ = sample; -- cgit v1.2.3