16 Q_PROPERTY(QUrl source READ source WRITE setSource NOTIFY sourceChanged)
17 Q_PROPERTY(
bool isDecoding READ isDecoding NOTIFY isDecodingChanged)
18 Q_PROPERTY(QString error READ errorString)
19 Q_PROPERTY(
bool bufferAvailable READ bufferAvailable NOTIFY bufferAvailableChanged)
32 explicit QAudioDecoder(QObject *parent =
nullptr);
35 bool isSupported()
const;
36 bool isDecoding()
const;
39 void setSource(
const QUrl &fileName);
41 QIODevice* sourceDevice()
const;
42 void setSourceDevice(QIODevice *device);
44 QAudioFormat audioFormat()
const;
45 void setAudioFormat(
const QAudioFormat &format);
48 QString errorString()
const;
50 QAudioBuffer read()
const;
51 bool bufferAvailable()
const;
53 qint64 position()
const;
54 qint64 duration()
const;
61 void bufferAvailableChanged(
bool);
64 void isDecodingChanged(
bool);
66 void formatChanged(
const QAudioFormat &format);
68 void error(QAudioDecoder::Error error);
72 void positionChanged(qint64 position);
73 void durationChanged(qint64 duration);
76 Q_DISABLE_COPY(QAudioDecoder)
77 Q_DECLARE_PRIVATE(QAudioDecoder)
80 QT6_ONLY(
void *unused =
nullptr;)