src/multimedia/audio/qaudioengineplugin.h
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
    58 
    58 
    59 QT_MODULE(Multimedia)
    59 QT_MODULE(Multimedia)
    60 
    60 
    61 struct Q_MULTIMEDIA_EXPORT QAudioEngineFactoryInterface : public QFactoryInterface
    61 struct Q_MULTIMEDIA_EXPORT QAudioEngineFactoryInterface : public QFactoryInterface
    62 {
    62 {
    63     virtual QList<QByteArray> deviceList(QAudio::Mode) const = 0;
    63     virtual QList<QByteArray> availableDevices(QAudio::Mode) const = 0;
    64     virtual QAbstractAudioInput* createInput(const QByteArray& device, const QAudioFormat& format = QAudioFormat()) = 0;
    64     virtual QAbstractAudioInput* createInput(const QByteArray& device, const QAudioFormat& format = QAudioFormat()) = 0;
    65     virtual QAbstractAudioOutput* createOutput(const QByteArray& device, const QAudioFormat& format = QAudioFormat()) = 0;
    65     virtual QAbstractAudioOutput* createOutput(const QByteArray& device, const QAudioFormat& format = QAudioFormat()) = 0;
    66     virtual QAbstractAudioDeviceInfo* createDeviceInfo(const QByteArray& device, QAudio::Mode mode) = 0;
    66     virtual QAbstractAudioDeviceInfo* createDeviceInfo(const QByteArray& device, QAudio::Mode mode) = 0;
    67 };
    67 };
    68 
    68 
    78 public:
    78 public:
    79     QAudioEnginePlugin(QObject *parent = 0);
    79     QAudioEnginePlugin(QObject *parent = 0);
    80     ~QAudioEnginePlugin();
    80     ~QAudioEnginePlugin();
    81 
    81 
    82     virtual QStringList keys() const = 0;
    82     virtual QStringList keys() const = 0;
    83     virtual QList<QByteArray> deviceList(QAudio::Mode) const = 0;
    83     virtual QList<QByteArray> availableDevices(QAudio::Mode) const = 0;
    84     virtual QAbstractAudioInput* createInput(const QByteArray& device, const QAudioFormat& format = QAudioFormat()) = 0;
    84     virtual QAbstractAudioInput* createInput(const QByteArray& device, const QAudioFormat& format = QAudioFormat()) = 0;
    85     virtual QAbstractAudioOutput* createOutput(const QByteArray& device, const QAudioFormat& format = QAudioFormat()) = 0;
    85     virtual QAbstractAudioOutput* createOutput(const QByteArray& device, const QAudioFormat& format = QAudioFormat()) = 0;
    86     virtual QAbstractAudioDeviceInfo* createDeviceInfo(const QByteArray& device, QAudio::Mode mode) = 0;
    86     virtual QAbstractAudioDeviceInfo* createDeviceInfo(const QByteArray& device, QAudio::Mode mode) = 0;
    87 };
    87 };
    88 
    88