diff options
| author | jossgray <joss@jossgray.net> | 2016-12-05 19:01:02 +0000 |
|---|---|---|
| committer | jossgray <joss@jossgray.net> | 2016-12-05 19:01:02 +0000 |
| commit | bba842587eeac6a008af5732c55fb895246356ab (patch) | |
| tree | eed4996abd2c95af0229ce1cb103b16801cc8892 /tests/teststops.cpp | |
| parent | 2697075ec56e365ecc20841cbfb5f98d4b79eb43 (diff) | |
Fix truncation from double to float warning.
Diffstat (limited to 'tests/teststops.cpp')
| -rw-r--r-- | tests/teststops.cpp | 2 |
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;
|
