From af066be740bb4989eea7dc944b793f81f806d217 Mon Sep 17 00:00:00 2001 From: Mathew Sutcliffe Date: Thu, 10 Nov 2016 00:48:56 +0000 Subject: [PATCH] refs #800 Fixed copy/paste mistake. --- src/blacksound/soundgenerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blacksound/soundgenerator.cpp b/src/blacksound/soundgenerator.cpp index b7de851a5..a5a457814 100644 --- a/src/blacksound/soundgenerator.cpp +++ b/src/blacksound/soundgenerator.cpp @@ -250,7 +250,7 @@ namespace BlackSound else if (this->m_audioFormat.sampleSize() == 8 && this->m_audioFormat.sampleType() == QAudioFormat::SignedInt) { const qint8 value = static_cast(amplitude * 127); - *reinterpret_cast(bufferPointer) = value; + *reinterpret_cast(bufferPointer) = value; } else if (this->m_audioFormat.sampleSize() == 16 && this->m_audioFormat.sampleType() == QAudioFormat::UnSignedInt) {