Remove sound_server in build packages
[platform/core/multimedia/libmm-sound.git] / include / mm_sound_proxy.h
index 447e4d9..55daf5b 100644 (file)
 
 #include "mm_sound_private.h"
 #include "mm_sound_device.h"
-#ifdef USE_FOCUS
 #include "mm_sound_focus.h"
-#endif
 #include "include/mm_sound_client.h"
 
 typedef void (*mm_sound_proxy_userdata_free) (void *data);
 
-int mm_sound_proxy_play_tone(int tone, int repeat, int volume, int volume_config,
-                       int session_type, int session_options, int client_pid,
-                       bool enable_session, int *codechandle, char *stream_type, int stream_index);
-int mm_sound_proxy_play_tone_with_stream_info(int client_pid, int tone, char *stream_type, int stream_id, int volume, int repeat, int *codechandle);
-int mm_sound_proxy_play_sound(const char* filename, int tone, int repeat, int volume, int volume_config,
-                       int priority, int session_type, int session_options, int client_pid, int handle_route,
-                       bool enable_session, int *codechandle, char *stream_type, int stream_index);
-int mm_sound_proxy_play_sound_with_stream_info(const char* filename, int repeat, int volume,
-                       int priority, int client_pid, int handle_route, int *codechandle, char *stream_type, int stream_index);
-int mm_sound_proxy_stop_sound(int handle);
-int mm_sound_proxy_clear_focus(int pid); // Not original focus feature, only for cleaning up tone/wav player internal focus usage.
-int mm_sound_proxy_add_play_sound_end_callback(mm_sound_stop_callback_wrapper_func func, void* userdata, mm_sound_proxy_userdata_free freefunc, unsigned *subs_id);
-int mm_sound_proxy_remove_play_sound_end_callback(unsigned subs_id);
 int mm_sound_proxy_get_current_connected_device_list(int device_flags, GList** device_list);
-int mm_sound_proxy_add_device_connected_callback(int device_flags, mm_sound_device_connected_wrapper_cb func, void *userdata, mm_sound_proxy_userdata_free freefunc, unsigned *subs_id);
+int mm_sound_proxy_get_device_by_id(int device_id, mm_sound_device_t **device);
+int mm_sound_proxy_add_device_connected_callback(mm_sound_device_connected_wrapper_cb func, void *userdata, mm_sound_proxy_userdata_free freefunc, unsigned *subs_id);
 int mm_sound_proxy_remove_device_connected_callback(unsigned subs_id);
-int mm_sound_proxy_add_device_info_changed_callback(int device_flags, mm_sound_device_info_changed_wrapper_cb func, void* userdata, mm_sound_proxy_userdata_free freefunc, unsigned *subs_id);
+int mm_sound_proxy_add_device_info_changed_callback(mm_sound_device_info_changed_wrapper_cb func, void* userdata, mm_sound_proxy_userdata_free freefunc, unsigned *subs_id);
 int mm_sound_proxy_remove_device_info_changed_callback(unsigned subs_id);
-int mm_sound_proxy_add_device_state_changed_callback(int device_flags, mm_sound_device_state_changed_wrapper_cb func, void* userdata, mm_sound_proxy_userdata_free freefunc, unsigned *subs_id);
+int mm_sound_proxy_add_device_state_changed_callback(mm_sound_device_state_changed_wrapper_cb func, void* userdata, mm_sound_proxy_userdata_free freefunc, unsigned *subs_id);
 int mm_sound_proxy_remove_device_state_changed_callback(unsigned subs_id);
+int mm_sound_proxy_add_device_running_changed_callback(mm_sound_device_running_changed_wrapper_cb func, void* userdata, mm_sound_proxy_userdata_free freefunc, unsigned *subs_id);
+int mm_sound_proxy_remove_device_running_changed_callback(unsigned subs_id);
+int mm_sound_proxy_is_stream_on_device(int stream_id, int device_id, bool *is_on);
 int mm_sound_proxy_set_volume_by_type(const char *volume_type, const unsigned volume_level);
 int mm_sound_proxy_add_volume_changed_callback(mm_sound_volume_changed_wrapper_cb func, void* userdata, mm_sound_proxy_userdata_free freefunc, unsigned *subs_id);
 int mm_sound_proxy_remove_volume_changed_callback(unsigned subs_id);
+int mm_sound_proxy_add_ducking_state_changed_callback(mm_sound_ducking_state_changed_wrapper_cb func, void* userdata, mm_sound_proxy_userdata_free freefunc, unsigned *subs_id);
+int mm_sound_proxy_remove_ducking_state_changed_callback(unsigned subs_id);
+int mm_sound_proxy_set_mute_by_type(const char *volume_type, bool mute);
 int mm_sound_proxy_emergent_exit(int exit_pid);
+int mm_sound_proxy_set_filter_by_type(const char *stream_type, const char *filter_name, const char *filter_parameters, const char *filter_group);
+int mm_sound_proxy_unset_filter_by_type(const char *stream_type);
+int mm_sound_proxy_control_filter_by_type(const char *stream_type, const char *filter_name, const char *filter_controls);
 
-#ifdef USE_FOCUS
-int mm_sound_proxy_get_unique_id(int *id);
-int mm_sound_proxy_register_focus(int id, int instance, const char *stream_type, mm_sound_focus_changed_cb callback, bool is_for_session, void* user_data);
-int mm_sound_proxy_unregister_focus(int instance, int id, bool is_for_session);
-int mm_sound_proxy_set_foucs_reacquisition(int instance, int id, bool reacquisition);
+int mm_sound_proxy_register_focus(int pid, const char *stream_type, int *id);
+int mm_sound_proxy_unregister_focus(int index);
+int mm_sound_proxy_set_focus_reacquisition(int index, bool reacquisition);
 int mm_sound_proxy_get_acquired_focus_stream_type(int focus_type, char **stream_type, int *option, char **ext_info);
-int mm_sound_proxy_acquire_focus(int instance, int id, mm_sound_focus_type_e type, int option, const char *ext_info, bool is_for_session);
-int mm_sound_proxy_release_focus(int instance, int id, mm_sound_focus_type_e type, int option, const char *ext_info, bool is_for_session);
-int mm_sound_proxy_set_focus_watch_callback(int instance, int handle, mm_sound_focus_type_e type, mm_sound_focus_changed_watch_cb callback, bool is_for_session, void *user_data);
-int mm_sound_proxy_unset_focus_watch_callback(int focus_tid, int handle, bool is_for_session);
-#endif
+int mm_sound_proxy_acquire_focus(int index, mm_sound_focus_type_e type, int option, const char *ext_info);
+int mm_sound_proxy_release_focus(int index, mm_sound_focus_type_e type, int option, const char *ext_info);
+int mm_sound_proxy_update_stream_focus_status(int focus_id, unsigned int status);
+int mm_sound_proxy_deliver_focus(int src_index, int dst_index, mm_sound_focus_type_e focus_type);
+int mm_sound_proxy_add_focus_watch_callback(int index, mm_sound_focus_type_e type);
+int mm_sound_proxy_remove_focus_watch_callback(int index);
 
 int mm_sound_proxy_add_test_callback(mm_sound_test_cb func, void *userdata, mm_sound_proxy_userdata_free freefunc, unsigned *subs_id);
 int mm_sound_proxy_remove_test_callback(unsigned subs_id);