4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: Seungbae Shin <seungbae.shin@samsung.com>
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
24 * @brief Application interface library for sound module.
28 * Application interface library for sound module.
31 #ifndef __MM_SOUND_PRIVATE_H__
32 #define __MM_SOUND_PRIVATE_H__
44 @addtogroup SOUND_PRIVATE
50 const char *filename; /**< filename to play */
51 int volume; /**< relative volume level */
52 int loop; /**< loop count */
53 mm_sound_stop_callback_func callback; /**< callback function when playing is terminated */
54 void *data; /**< user data to callback */
55 int volume_config; /**< volume type & volume gain */
59 * This function is to play key sound.
61 * @param filename [in] keytone filename to play
62 * @param volume_config [in] Volume type & volume gain
64 * @return This function returns MM_ERROR_NONE on success, or negative value
67 * @remark This function provide low latency sound play (such as dialer keytone)
68 * using fixed spec of wave file (44100Hz, mono channel)
69 * @see volume_type_t volume_gain_t mm_sound_volume_set_value
71 int mm_sound_play_keysound(const char *filename, int volume_config);
73 int mm_sound_boot_ready(int timeout_sec);
75 int mm_sound_boot_play_sound(char* path);
85 #endif /* __MM_SOUND_H__ */