Fix truncation from double to float warning.
authorjossgray <joss@jossgray.net>
Mon, 5 Dec 2016 19:01:02 +0000 (19:01 +0000)
committerjossgray <joss@jossgray.net>
Mon, 5 Dec 2016 19:01:02 +0000 (19:01 +0000)
tests/teststops.cpp

index e24c06490ab0877b8ebfcf7500c00ba0404459a5..b388554a77d9a9f6f1ac821403ab4f254af7b913 100644 (file)
@@ -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.9f;\r
     else sample = 0.0;\r
     for ( j=0; j<data->channels; j++ )\r
       *buffer++ = sample;\r