Tizen 2.1 base
[apps/core/preloaded/ug-camera-efl.git] / include / cam_sound.h
1 /*
2  * Copyright 2012  Samsung Electronics Co., Ltd
3  *
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
7  *
8  *        http://floralicense.org/license/
9  *
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.
15  */
16
17
18 #ifndef _CAM_SOUND_H_
19 #define _CAM_SOUND_H_
20
21 #include <glib.h>
22
23 #define SOUND_PATH                                    "/usr/ug/res/sounds/ug-camera-efl/sounds"
24
25 enum _CamSoundEffect {
26         CAM_SOUND_EFFECT_SHUTTER1,
27         CAM_SOUND_EFFECT_SHUTTER2,
28         CAM_SOUND_EFFECT_SHUTTER3,
29         CAM_SOUND_EFFECT_CONTINUOUS_SHUTTER,
30         CAM_SOUND_EFFECT_CONTINUOUS_READY,
31         CAM_SOUND_EFFECT_REC_START1,
32         CAM_SOUND_EFFECT_REC_START2,
33         CAM_SOUND_EFFECT_REC_START3,
34         CAM_SOUND_EFFECT_REC_PAUSE,
35         CAM_SOUND_EFFECT_REC_RESUME,
36         CAM_SOUND_EFFECT_REC_CANCEL,
37         CAM_SOUND_EFFECT_REC_COMMIT1,
38         CAM_SOUND_EFFECT_REC_COMMIT2,
39         CAM_SOUND_EFFECT_REC_COMMIT3,
40         CAM_SOUND_EFFECT_TICK,
41         CAM_SOUND_EFFECT_AF_OK,
42         CAM_SOUND_EFFECT_AF_FAIL,
43         CAM_SOUND_EFFECT_NUM,
44 };
45
46 gboolean cam_sound_init(GError **error);
47 void cam_sound_finalize(void);
48 void cam_sound_set(int index, const gchar *file);
49 const gchar *cam_sound_get(int index);
50 gboolean cam_sound_is_silent_mode(void);
51 /*change audio rute api */
52 gboolean cam_sound_set_mic();
53 gboolean cam_sound_play(int index, void *data);
54
55 #endif /*_CAM_SOUND_H_*/