mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 12:04:18 +02:00
add nop notify signals to Audio(Devices)
This commit is contained in:
parent
954e4979f8
commit
9395de1873
2 changed files with 9 additions and 3 deletions
|
@ -27,11 +27,14 @@ class Audio : public AudioScriptingInterface {
|
|||
// TODO: Q_PROPERTY(float inputVolume)
|
||||
// TODO: Q_PROPERTY(bool showMicLevel)
|
||||
// TODO: Q_PROPERTY(QString context)
|
||||
Q_PROPERTY(AudioDevices* devices READ getDevices)
|
||||
Q_PROPERTY(AudioDevices* devices READ getDevices NOTIFY nop)
|
||||
|
||||
public:
|
||||
virtual ~Audio() {}
|
||||
|
||||
signals:
|
||||
void nop();
|
||||
|
||||
protected:
|
||||
Audio() {}
|
||||
|
||||
|
|
|
@ -51,12 +51,15 @@ private:
|
|||
|
||||
class AudioDevices : public QObject {
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(AudioDeviceList* input READ getInputList)
|
||||
Q_PROPERTY(AudioDeviceList* output READ getOutputList)
|
||||
Q_PROPERTY(AudioDeviceList* input READ getInputList NOTIFY nop)
|
||||
Q_PROPERTY(AudioDeviceList* output READ getOutputList NOTIFY nop)
|
||||
|
||||
public:
|
||||
AudioDevices();
|
||||
|
||||
signals:
|
||||
void nop();
|
||||
|
||||
private slots:
|
||||
void onDeviceChanged(QAudio::Mode mode, const QAudioDeviceInfo& device);
|
||||
void onDevicesChanged(QAudio::Mode mode, const QList<QAudioDeviceInfo>& devices);
|
||||
|
|
Loading…
Reference in a new issue