From b978b7d9ea51d50d9e5394427b1a0387b64201b8 Mon Sep 17 00:00:00 2001 From: Seungbae Shin Date: Mon, 4 May 2020 19:04:22 +0900 Subject: [PATCH] Fix build warnings Change-Id: Idcf9b5a32c18912aef01ab9580c2812243e86297 --- include/mm_sound_client.h | 1 + include/mm_sound_proxy.h | 1 + mm_sound_keysound.c | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/mm_sound_client.h b/include/mm_sound_client.h index 35d718a..d343730 100644 --- a/include/mm_sound_client.h +++ b/include/mm_sound_client.h @@ -39,6 +39,7 @@ int mm_sound_client_finalize(void); int mm_sound_client_play_tone_with_stream_info(int tone, char *stream_type, int stream_id, double volume, int duration, int *handle); int mm_sound_client_play_sound_with_stream_info(MMSoundPlayParam *param, int *handle, char* stream_type, int stream_id); int mm_sound_client_stop_sound(int handle); +int mm_sound_client_stop_tone(int handle); int mm_sound_client_set_volume_by_type(volume_type_t type, const unsigned int level); int mm_sound_client_get_volume_by_type(volume_type_t type, unsigned int *level); int mm_sound_client_add_volume_changed_callback(mm_sound_volume_changed_cb func, void* user_data, unsigned int *subs_id); diff --git a/include/mm_sound_proxy.h b/include/mm_sound_proxy.h index 5ba3e5e..91a9cd6 100644 --- a/include/mm_sound_proxy.h +++ b/include/mm_sound_proxy.h @@ -42,6 +42,7 @@ int mm_sound_proxy_play_tone_with_stream_info(int client_pid, int tone, char *st int mm_sound_proxy_play_sound_with_stream_info(const char* filename, int repeat, int client_pid, int *codechandle, char *stream_type, int stream_index); int mm_sound_proxy_stop_sound(int handle); +int mm_sound_proxy_stop_tone(int handle); 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); diff --git a/mm_sound_keysound.c b/mm_sound_keysound.c index 397ce17..8196574 100644 --- a/mm_sound_keysound.c +++ b/mm_sound_keysound.c @@ -195,7 +195,7 @@ static int __mm_sound_simple_pipe(const char *filename, int volume_config, const size_t size_to_write = sizeof(ipc_t); ssize_t written = 0; int fd = -1; - ipc_t data = { { 0, }, { 0, }, { 0, } }; + ipc_t data = { 0, }; #ifdef USE_LWIPC if (!_mm_sound_check_pa_ready()) { -- 2.7.4