2 * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.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://www.apache.org/licenses/LICENSE-2.0
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.
17 #ifndef __VOICE_RECORDER_H__
18 #define __VOICE_RECORDER_H__
29 struct _voice_recorder {
31 recorder_audio_codec_e *codec_list;
33 char file_path[PATH_MAX];
34 char file_name[PATH_MAX];
35 recorder_audio_codec_e codec;
36 recorder_file_format_e file_format;
38 app_control_h service;
42 long long int limitsize;
44 typedef struct _voice_recorder voice_recorder;
46 void init_voice_recorder(app_control_h service);
47 void destroy_voice_recorder();
48 void start_voice_recorder();
49 void stop_voice_recorder();
50 void _voice_recorder_set_data(void *data);
51 voice_recorder *_voice_recorder_get_data();
53 #endif // __VOICE_RECORDER_H__