diff --git a/source/streams/StreamRecording.cpp b/source/streams/StreamRecording.cpp index 3e34a6c6..b7141222 100644 --- a/source/streams/StreamRecording.cpp +++ b/source/streams/StreamRecording.cpp @@ -62,7 +62,7 @@ int StreamRecording::length() float StreamRecording::duration( unsigned int sampleRate ) { - return ((float)this->length() / DATASTREAM_FORMAT_BYTES_PER_SAMPLE((float)this->getFormat()) ) / (float)sampleRate; + return ((float)this->length() / (float)DATASTREAM_FORMAT_BYTES_PER_SAMPLE(this->getFormat()) ) / (float)sampleRate; } bool StreamRecording::isFull() {