2 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
4 * Licensed under the Flora License, Version 1.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://floralicense.org/license/
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 * setting-common-sound.h
20 * Created on: Oct 16, 2013
24 #ifndef SETTING_COMMON_SOUND_H_
25 #define SETTING_COMMON_SOUND_H_
28 #include <sound_manager.h>
29 #include <mm_sound_private.h>
30 #include <wav_player.h>
31 /*#include <player_product.h> */
34 #define SETTING_DEFAULT_RINGTONE_PATH "/opt/share/settings/Ringtones"
35 #define SETTING_DEFAULT_ALERT_PATH "/opt/share/settings/Alerts"
36 #define SETTING_DEFAULT_PREVIEW_PATH "/opt/share/settings/Previews"
40 #define SETTING_DEFAULT_MSG_TONE SETTING_DEFAULT_ALERT_PATH""DELIM"Flicker.ogg"
41 #define SETTING_DEFAULT_RING_TONE SETTING_DEFAULT_RINGTONE_PATH""DELIM"Timeless.ogg"
42 #define SETTING_DEFAULT_MEDIA_TONE SETTING_DEFAULT_PREVIEW_PATH""DELIM"Media_preview_Over_the_horizon_B2.ogg"
43 #define SETTING_DEFAULT_SILENT_OFF_TONE SETTING_DEFAULT_PREVIEW_PATH""DELIM"Silent_mode_off.ogg"
44 #define SETTING_DEFAULT_SYS_TONE SETTING_DEFAULT_PREVIEW_PATH""DELIM"B_Touch.ogg"
46 #define SETTING_RINGTONE_VOLUME_BACKUP "db/setting/sound/call/rmd_ringtone_volume"
49 #define PREVIEW_TEMP_PATH "/opt/usr/media/Sounds/Over the horizon.mp3"
63 int is_created_player();
64 void set_looping(int);
66 void play_sound(char *file_path, float volume, sound_type_e sound_type);
67 int profile_play_sound(void *data, void *cb, char *ringtone_file, float vol, sound_type_e sound_type, int prelistening_enable);
68 int _close_player(void *data, sound_type_e type);
69 int _profile_stop_sound(void *data);
71 #endif /* SETTING_COMMON_SOUND_H_ */