6 #ifndef SWIFT_SOUND_CODECS_OPUSDECODER_H
7 #define SWIFT_SOUND_CODECS_OPUSDECODER_H
11 #include "opus/opus.h"
15 namespace swift::sound::codecs
34 int frameCount(
int bufferSize);
37 QVector<qint16> decode(
const QByteArray &opusData,
int dataLength,
int *decodedLength);
43 OpusDecoder *m_opusDecoder =
nullptr;
46 static constexpr
int MaxDataBytes = 4000;
COpusDecoder & operator=(COpusDecoder const &)=delete
Not copyable and assignable.
COpusDecoder(const COpusDecoder &decoder)=delete
Not copyable and assignable.
#define SWIFT_SOUND_EXPORT
Export a class or function from the library.