Browse Source

Fix truncation from double to float warning.

tags/5.0.0
jossgray 8 years ago
parent
commit
bba842587e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      tests/teststops.cpp

+ 1
- 1
tests/teststops.cpp View File

@@ -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;


Loading…
Cancel
Save