summaryrefslogtreecommitdiffstats
path: root/src/qlibsoundmanager.h
diff options
context:
space:
mode:
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-06-06 20:36:49 +0900
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-06-28 15:16:58 +0900
commitdd45065c7556a4dfe8a0fe340a6093bcb84e772a (patch)
tree8dd6b6714b9ae3443d20ad1ba95b3e9f85172bb3 /src/qlibsoundmanager.h
parentde22d2c202af9a4074a1d2e120b971488eac649a (diff)
High level API * stream_open * stream_close * set_stream_state Get functions * getListMainSinks * getListMainSources * getListMainConnections New event * stream_state_event Change-Id: Ifdfd4551d64bbc83a080bb4d9d07f77e7b5715a8 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Diffstat (limited to 'src/qlibsoundmanager.h')
-rw-r--r--src/qlibsoundmanager.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/qlibsoundmanager.h b/src/qlibsoundmanager.h
index 36b477b..4c17002 100644
--- a/src/qlibsoundmanager.h
+++ b/src/qlibsoundmanager.h
@@ -38,11 +38,18 @@ public: // method
public:
Q_INVOKABLE int call(const QString &verb, const QJsonObject &arg);
- Q_INVOKABLE int connect(int sourceID, const QString& sinkName);
+ Q_INVOKABLE int connect(int sourceID, const QString& sinkName = "default");
Q_INVOKABLE int connect(int sourceID, int sinkID);
Q_INVOKABLE int disconnect(int connectionID);
Q_INVOKABLE int ackSetSourceState(int handle, int errorcode);
- Q_INVOKABLE int registerSource(const QString& name);
+ Q_INVOKABLE int registerSource(const QString& audio_role);
+ Q_INVOKABLE int getListMainSinks();
+ Q_INVOKABLE int getListMainSources();
+ Q_INVOKABLE int getListMainConnections();
+ Q_INVOKABLE int stream_open(const QString& audio_role, int endpoint_id);
+ Q_INVOKABLE int stream_open(const QString& audio_role, const QString& endpoint_id = "default");
+ Q_INVOKABLE int stream_close(int stream_id);
+ Q_INVOKABLE int set_stream_state(int stream_id, int mute = 0); // 0 is unmute , 1 is mute
signals:
void reply(const QVariant &msg);