mirror of
https://github.com/overte-org/overte.git
synced 2025-05-11 00:19:11 +02:00
52 lines
1.3 KiB
C++
52 lines
1.3 KiB
C++
//
|
|
// AudioDeviceScriptingInterface.h
|
|
// interface/src/scripting
|
|
//
|
|
// Created by Brad Hefta-Gaub on 3/22/14.
|
|
// Copyright 2014 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
|
|
#ifndef hifi_AudioDeviceScriptingInterface_h
|
|
#define hifi_AudioDeviceScriptingInterface_h
|
|
|
|
#include <QDebug>
|
|
#include <QObject>
|
|
#include <QString>
|
|
|
|
#include "Application.h"
|
|
|
|
class AudioDeviceScriptingInterface : public QObject {
|
|
Q_OBJECT
|
|
AudioDeviceScriptingInterface() { };
|
|
public:
|
|
static AudioDeviceScriptingInterface* getInstance();
|
|
|
|
public slots:
|
|
bool setInputDevice(const QString& deviceName);
|
|
bool setOutputDevice(const QString& deviceName);
|
|
|
|
QString getInputDevice();
|
|
QString getOutputDevice();
|
|
|
|
QString getDefaultInputDevice();
|
|
QString getDefaultOutputDevice();
|
|
|
|
QVector<QString> getInputDevices();
|
|
QVector<QString> getOutputDevices();
|
|
|
|
float getInputVolume();
|
|
void setInputVolume(float volume);
|
|
void setReverb(bool reverb);
|
|
void setReverbOptions(const AudioEffectOptions* options);
|
|
|
|
bool getMuted();
|
|
void toggleMute();
|
|
|
|
signals:
|
|
void muteToggled();
|
|
};
|
|
|
|
#endif // hifi_AudioDeviceScriptingInterface_h
|