diff options
-rw-r--r-- | src/qlibsoundmanager.cpp | 16 | ||||
-rw-r--r-- | src/qlibsoundmanager.h | 8 |
2 files changed, 12 insertions, 12 deletions
diff --git a/src/qlibsoundmanager.cpp b/src/qlibsoundmanager.cpp index a7722d9..af910fe 100644 --- a/src/qlibsoundmanager.cpp +++ b/src/qlibsoundmanager.cpp @@ -108,21 +108,21 @@ int QSoundmanager::getListMainSinks(){ int QSoundmanager::getListMainConnections(){ return Soundmanager::getListMainConnections(); } -int QSoundmanager::stream_open(const QString& audio_role, int endpoint_id){ +int QSoundmanager::streamOpen(const QString& audio_role, int endpoint_id){ string arole = audio_role.toStdString(); - return Soundmanager::stream_open(arole, endpoint_id); + return Soundmanager::streamOpen(arole, endpoint_id); } -int QSoundmanager::stream_open(const QString& audio_role, const QString& endpoint_id){ +int QSoundmanager::streamOpen(const QString& audio_role, const QString& endpoint_id){ string arole = audio_role.toStdString(); string eid = endpoint_id.toStdString(); - return Soundmanager::stream_open(arole, eid); + return Soundmanager::streamOpen(arole, eid); } -int QSoundmanager::stream_close(int stream_id){ - return Soundmanager::stream_close(stream_id); +int QSoundmanager::streamClose(int stream_id){ + return Soundmanager::streamClose(stream_id); } -int QSoundmanager::set_stream_state(int stream_id, int mute){ - return Soundmanager::set_stream_state(stream_id, mute); +int QSoundmanager::setStreamState(int stream_id, int mute){ + return Soundmanager::setStreamState(stream_id, mute); } diff --git a/src/qlibsoundmanager.h b/src/qlibsoundmanager.h index 4c17002..bbe3da9 100644 --- a/src/qlibsoundmanager.h +++ b/src/qlibsoundmanager.h @@ -46,10 +46,10 @@ public: 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 + Q_INVOKABLE int streamOpen(const QString& audio_role, int endpoint_id); + Q_INVOKABLE int streamOpen(const QString& audio_role, const QString& endpoint_id = "default"); + Q_INVOKABLE int streamClose(int stream_id); + Q_INVOKABLE int setStreamState(int stream_id, int mute = 0); // 0 is unmute , 1 is mute signals: void reply(const QVariant &msg); |