summaryrefslogtreecommitdiffstats
path: root/src/qlibsoundmanager.cpp
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.cpp
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.cpp')
-rw-r--r--src/qlibsoundmanager.cpp30
1 files changed, 28 insertions, 2 deletions
diff --git a/src/qlibsoundmanager.cpp b/src/qlibsoundmanager.cpp
index c9e002c..a7722d9 100644
--- a/src/qlibsoundmanager.cpp
+++ b/src/qlibsoundmanager.cpp
@@ -95,10 +95,36 @@ int QSoundmanager::disconnect(int connectionID){
int QSoundmanager::ackSetSourceState(int handle, int errorcode){
return Soundmanager::ackSetSourceState(handle, errorcode);
}
-int QSoundmanager::registerSource(const QString& name){
- string str = name.toStdString();
+int QSoundmanager::registerSource(const QString& audio_role){
+ string str = audio_role.toStdString();
return Soundmanager::registerSource(str);
}
+int QSoundmanager::getListMainSources(){
+ return Soundmanager::getListMainSources();
+}
+int QSoundmanager::getListMainSinks(){
+ return Soundmanager::getListMainSinks();
+}
+int QSoundmanager::getListMainConnections(){
+ return Soundmanager::getListMainConnections();
+}
+int QSoundmanager::stream_open(const QString& audio_role, int endpoint_id){
+ string arole = audio_role.toStdString();
+ return Soundmanager::stream_open(arole, endpoint_id);
+}
+int QSoundmanager::stream_open(const QString& audio_role, const QString& endpoint_id){
+ string arole = audio_role.toStdString();
+ string eid = endpoint_id.toStdString();
+ return Soundmanager::stream_open(arole, eid);
+}
+
+int QSoundmanager::stream_close(int stream_id){
+ return Soundmanager::stream_close(stream_id);
+}
+int QSoundmanager::set_stream_state(int stream_id, int mute){
+ return Soundmanager::set_stream_state(stream_id, mute);
+}
+
static int create_json_object(const QJsonObject& obj, struct json_object* jobj)
{