4#ifndef MFAUDIODECODERCONTROL_H
5#define MFAUDIODECODERCONTROL_H
19#include <private/qplatformaudiodecoder_p.h>
21#include <private/qcomptr_p.h>
22#include <private/qwindowsresampler_p.h>
39 void start()
override;
52 void handleMediaSourceReady();
53 void handleMediaSourceError(
long hr);
54 void handleNewSample(ComPtr<IMFSample>);
55 void handleSourceFinished();
58 void startReadingSource(IMFMediaSource *
source);
60 ComPtr<MFDecoderSourceReader> m_decoderSourceReader;
69 bool m_loadingSource =
false;
70 bool m_deferredStart =
false;
IOBluetoothDevice * device
qint64 duration() const override
void setAudioFormat(const QAudioFormat &format) override
bool bufferAvailable() const override
QUrl source() const override
void setSourceDevice(QIODevice *device) override
QAudioFormat audioFormat() const override
QAudioBuffer read() override
void setSource(const QUrl &fileName) override
qint64 position() const override
QIODevice * sourceDevice() const override
~MFAudioDecoderControl() override
qsizetype sampleCount() const noexcept
Returns the number of samples in this buffer.
The QAudioDecoder class implements decoding audio.
\inmodule QtCore \reentrant
QObject * parent() const
Returns a pointer to the parent object.
Combined button and popup list for selecting options.
GLint GLsizei GLsizei GLenum format
GLsizei GLsizei GLchar * source