mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 07:35:48 +08:00
refs #800 Fixed copy/paste mistake.
This commit is contained in:
committed by
Klaus Basan
parent
6f907c5ade
commit
af066be740
@@ -250,7 +250,7 @@ namespace BlackSound
|
||||
else if (this->m_audioFormat.sampleSize() == 8 && this->m_audioFormat.sampleType() == QAudioFormat::SignedInt)
|
||||
{
|
||||
const qint8 value = static_cast<qint8>(amplitude * 127);
|
||||
*reinterpret_cast<quint8 *>(bufferPointer) = value;
|
||||
*reinterpret_cast<qint8 *>(bufferPointer) = value;
|
||||
}
|
||||
else if (this->m_audioFormat.sampleSize() == 16 && this->m_audioFormat.sampleType() == QAudioFormat::UnSignedInt)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user