Clean up and Add log into dependency audio manager
[platform/core/uifw/voice-control.git] / audio-manager / inc / vc_audio_manager.h
1 /**
2  * Copyright (c) 2020 Samsung Electronics Co., Ltd All Rights Reserved
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
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 __VC_AUDIO_MANAGER_H__
19 #define __VC_AUDIO_MANAGER_H__
20
21 #include <tizen.h>
22
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26
27 typedef int (*dependency_audio_manager_feed_audio_data)(const void* data, const unsigned int length);
28
29 int vcd_dependency_initialize(sound_stream_info_h stream_info_h, dependency_audio_manager_feed_audio_data callback);
30 int vcd_dependency_deinitialize(void);
31 int vcd_dependency_set_audio_info(sound_stream_info_h stream_info_h, const char* audio_source_type, vce_audio_type_e type, int rate, int channel);
32 int vcd_dependency_get_audio_source_type(char** audio_source_type);
33 int vcd_dependency_set_streaming_mode(vc_audio_streaming_mode_e mode);
34 int vcd_dependency_start_recording(void);
35 int vcd_dependency_stop_recording(void);
36
37 #ifdef __cplusplus
38 }
39 #endif
40
41 #endif /* __VC_AUDIO_MANAGER_H__ */