mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 02:35:33 +08:00
Ref T730, style
This commit is contained in:
committed by
Mat Sutcliffe
parent
cd58108bfe
commit
6a9109bf8f
@@ -19,7 +19,7 @@ namespace BlackSound
|
||||
{
|
||||
CResourceSound::CResourceSound(const QString &audioFileName)
|
||||
{
|
||||
m_wavFile = new WavFile;
|
||||
m_wavFile = new CWavFile();
|
||||
m_wavFile->open(audioFileName);
|
||||
if (m_wavFile->fileFormat().sampleType() == QAudioFormat::Float)
|
||||
{
|
||||
@@ -30,10 +30,5 @@ namespace BlackSound
|
||||
m_samples = convertBytesTo16BitPCM(m_wavFile->audioData());
|
||||
}
|
||||
}
|
||||
|
||||
const QVector<qint16> &CResourceSound::audioData()
|
||||
{
|
||||
return m_samples;
|
||||
}
|
||||
}
|
||||
}
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
Reference in New Issue
Block a user