Fix build warnings 15/232415/1
authorSeungbae Shin <seungbae.shin@samsung.com>
Mon, 4 May 2020 10:04:22 +0000 (19:04 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Mon, 4 May 2020 10:04:22 +0000 (19:04 +0900)
Change-Id: Idcf9b5a32c18912aef01ab9580c2812243e86297

include/mm_sound_client.h
include/mm_sound_proxy.h
mm_sound_keysound.c

index 35d718a84b618e14ff123656acf9251cc63981dd..d3437305c97729c3b14ede8f13dd9a7e70173b08 100644 (file)
@@ -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);
index 5ba3e5e80a0874adcb04ad604a78ac122e58f76b..91a9cd634be0c36769d2fd7c83d4baebb97ec533 100644 (file)
@@ -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);
index 397ce17865f70a19f21ddeb67d5306aa91262d90..8196574fe10a25fa715a9b2bd6b6ce329b5fc7bb 100644 (file)
@@ -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()) {