4#ifndef MFDECODERSOURCEREADERCALLBACK_H
5#define MFDECODERSOURCEREADERCALLBACK_H
18#include <QtCore/qobject.h>
20#include <QtCore/private/qcomobject_p.h>
21#include <QtCore/private/qcomptr_p.h>
24#include <mfreadwrite.h>
28class MFSourceReaderCallback :
public QObject,
public QComObject<IMFSourceReaderCallback>
32 STDMETHODIMP OnReadSample(HRESULT hrStatus, DWORD dwStreamIndex, DWORD dwStreamFlags,
33 LONGLONG llTimestamp, IMFSample *pSample) override;
34 STDMETHODIMP OnFlush(DWORD)
override {
return S_OK; }
35 STDMETHODIMP OnEvent(DWORD, IMFMediaEvent *)
override {
return S_OK; }
38 void newSample(ComPtr<IMFSample>);
bool canReadQrc() 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
QIODevice * sourceDevice() const override
~MFAudioDecoderControl() override
Combined button and popup list for selecting options.