aboutsummaryrefslogtreecommitdiffstats
path: root/src/soundmanager.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/soundmanager.h')
-rw-r--r--src/soundmanager.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/soundmanager.h b/src/soundmanager.h
index 3666473..f79643b 100644
--- a/src/soundmanager.h
+++ b/src/soundmanager.h
@@ -328,7 +328,7 @@ void unsubscribe(struct afb_req request);
* #### Note
* TODO : write note
*/
-void streamOpen(struct afb_req req);
+void stream_open(struct afb_req req);
/**
* Application High Level API for AGL
@@ -344,23 +344,23 @@ void streamOpen(struct afb_req req);
* #### Note
* TODO : write note
*/
-void streamClose(struct afb_req req);
+void stream_close(struct afb_req req);
/**
* Application High Level API for AGL
* This function set stream state.
- * This function set the availability and calls connect function of Audio Manager
- * and returns the result of policy check.
+ * This function set the availability and calls connect function of Audio Manager.
+ * Policy check result will be notified by event..
*
* #### Parameters
* - stream_id : Stream id which is returned in stream_open.
- * - mute : Stream state as int
+ * - mute : Stream state as int. 0 is unmute, and 1 is mute. Sound manager set this parameter as unmute as default
* #### Return
* - error : Error status number. If error is 0, it means the request is accepted, otherwise error message is attached with error code in reply message.
* #### Note
- * TODO : write note
+ * After set unmute, then 'asyncSetSourceState' and 'stream_state_event' is pushed. These events contains information of state judged by AudioManager.
*/
-void setStreamState(struct afb_req req);
+void set_stream_state(struct afb_req req);
/*
********** Event list from Sound Manager **********
@@ -379,12 +379,12 @@ void setStreamState(struct afb_req req);
const struct afb_verb_v2 binding_verbs[]= {
#ifdef ENABLE_AGL_AHL
// High Level API of AGL
-{ .verb = "stream_open", .callback = streamOpen, .auth = NULL,
- .info = "Open stream." , .session = AFB_SESSION_NONE},
-{ .verb = "stream_close", .callback = streamClose, .auth = NULL,
+{ .verb = "stream_open", .callback = stream_open, .auth = NULL,
+ .info = "Open stream." , .session = AFB_SESSION_NONE},
+{ .verb = "stream_close", .callback = stream_close, .auth = NULL,
.info = "Close stream" , .session = AFB_SESSION_NONE},
-{ .verb = "set_stream_state", .callback = setStreamState, .auth = NULL,
- .info = "Set stream state" , .session = AFB_SESSION_NONE},
+{ .verb = "set_stream_state", .callback = set_stream_state, .auth = NULL,
+ .info = "Set stream state" , .session = AFB_SESSION_NONE},
#endif
// Adaption API of Audio Manager
{ .verb = "connect", .callback = connect, .auth = NULL,