mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-28 11:45:40 +08:00
Ref T730, style
This commit is contained in:
committed by
Mat Sutcliffe
parent
cd58108bfe
commit
6a9109bf8f
@@ -20,22 +20,30 @@ namespace BlackSound
|
||||
namespace Wav
|
||||
{
|
||||
//! * WAV file
|
||||
class WavFile : public QFile
|
||||
class CWavFile : public QFile
|
||||
{
|
||||
public:
|
||||
//! Ctor
|
||||
WavFile(QObject *parent = nullptr);
|
||||
CWavFile(QObject *parent = nullptr);
|
||||
|
||||
//! Standard open
|
||||
using QFile::open;
|
||||
|
||||
//! Open
|
||||
bool open(const QString &fileName);
|
||||
|
||||
//! Audio format
|
||||
const QAudioFormat &fileFormat() const;
|
||||
|
||||
//! Header length
|
||||
qint64 headerLength() const;
|
||||
QByteArray audioData() { return m_audioData; }
|
||||
|
||||
//! The audio data
|
||||
const QByteArray &audioData() const { return m_audioData; }
|
||||
|
||||
private:
|
||||
bool readHeader();
|
||||
|
||||
private:
|
||||
QAudioFormat m_fileFormat;
|
||||
qint64 m_headerLength;
|
||||
QByteArray m_audioData;
|
||||
|
||||
Reference in New Issue
Block a user