4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: Jeongmo Yang <jm80.yang@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.
22 #ifndef __MM_CAMCORDER_SOUND_H__
23 #define __MM_CAMCORDER_SOUND_H__
25 /*=======================================================================================
27 ========================================================================================*/
34 /*=======================================================================================
35 | GLOBAL DEFINITIONS AND DECLARATIONS FOR CAMCORDER |
36 ========================================================================================*/
39 /*=======================================================================================
41 ========================================================================================*/
42 #define _MMCAMCORDER_SAMPLE_SOUND_NAME_CAPTURE01 "camera-shutter-01"
43 #define _MMCAMCORDER_SAMPLE_SOUND_NAME_CAPTURE02 "camera-shutter-02"
44 #define _MMCAMCORDER_SAMPLE_SOUND_NAME_REC_START "recording-start"
45 #define _MMCAMCORDER_SAMPLE_SOUND_NAME_REC_STOP "recording-stop"
47 /*=======================================================================================
49 ========================================================================================*/
51 _MMCAMCORDER_SOUND_STATE_NONE,
52 _MMCAMCORDER_SOUND_STATE_INIT,
53 _MMCAMCORDER_SOUND_STATE_PLAYING,
54 } _MMCamcorderSoundState;
56 /*=======================================================================================
57 | STRUCTURE DEFINITIONS |
58 ========================================================================================*/
60 * Structure of sound info
62 typedef struct _SOUND_INFO {
70 _MMCamcorderSoundState state;
73 /*=======================================================================================
74 | CONSTANT DEFINITIONS |
75 ========================================================================================*/
78 /*=======================================================================================
79 | GLOBAL FUNCTION PROTOTYPES |
80 ========================================================================================*/
81 gboolean _mmcamcorder_sound_init(MMHandleType handle);
82 gboolean _mmcamcorder_sound_play(MMHandleType handle, const char *sample_name, gboolean sync_play);
83 gboolean _mmcamcorder_sound_finalize(MMHandleType handle);
85 int _mmcamcorder_sound_solo_play(MMHandleType handle, const char *sample_name, gboolean sync_play);
86 void _mmcamcorder_sound_solo_play_wait(MMHandleType handle);
92 #endif /* __MM_CAMCORDER_SOUND_H__ */