blob: 2814840377f2628ea2e48799a5ede43ac7bc4351
1 | /** |
2 | * \file adec-external-ctrl.h |
3 | * \brief Function prototypes of Audio Dec |
4 | * \version 1.0.0 |
5 | * \date 2011-03-08 |
6 | */ |
7 | /* Copyright (C) 2007-2011, Amlogic Inc. |
8 | * All right reserved |
9 | * |
10 | */ |
11 | #ifndef ADEC_EXTERNAL_H |
12 | #define ADEC_EXTERNAL_H |
13 | |
14 | #ifdef __cplusplus |
15 | extern "C" |
16 | { |
17 | #endif |
18 | |
19 | int audio_decode_init(void **handle, arm_audio_info *pcodec); |
20 | int audio_decode_start(void *handle); |
21 | int audio_decode_pause(void *handle); |
22 | int audio_decode_resume(void *handle); |
23 | int audio_decode_stop(void *handle); |
24 | int audio_decode_release(void **handle); |
25 | int audio_decode_automute(void *, int); |
26 | int audio_decode_set_mute(void *handle, int); |
27 | int audio_decode_set_volume(void *, float); |
28 | int audio_decode_get_volume(void *, float *); |
29 | int audio_decode_set_pre_gain(void *, float); |
30 | int audio_decode_get_pre_gain(void *, float *); |
31 | int audio_decode_set_pre_mute(void *, uint); |
32 | int audio_decode_get_pre_mute(void *, uint *); |
33 | int audio_channels_swap(void *); |
34 | int audio_channel_left_mono(void *); |
35 | int audio_channel_right_mono(void *); |
36 | int audio_channel_stereo(void *); |
37 | int audio_output_muted(void *handle); |
38 | int audio_dec_ready(void *handle); |
39 | int audio_get_decoded_nb_frames(void *handle); |
40 | |
41 | int audio_decode_set_lrvolume(void *, float lvol, float rvol); |
42 | int audio_decode_get_lrvolume(void *, float* lvol, float* rvol); |
43 | int audio_set_av_sync_threshold(void *, int); |
44 | int audio_get_soundtrack(void *, int*); |
45 | int get_audio_decoder(void); |
46 | int get_decoder_status(void *p, struct adec_status *adec); |
47 | int audio_channel_lrmix_flag_set(void *, int enable); |
48 | int audio_decpara_get(void *handle, int *pfs, int *pch,int *lfepresent); |
49 | int audio_get_format_supported(int format); |
50 | int audio_get_pts(void* handle); |
51 | int audio_set_skip_bytes(void* handle, unsigned int bytes); |
52 | int audio_get_pcm_level(void* handle); |
53 | int audio_get_decoded_pcm_delay(void *handle); |
54 | int audio_decode_basic_init(void); |
55 | int audio_decoder_set_trackrate(void* handle, void *rate); |
56 | int audio_decoder_get_enable_status(void* handle); |
57 | int audio_set_associate_enable(void *handle, unsigned int enable); |
58 | int audio_send_associate_data(void *handle, uint8_t *buf, size_t size); |
59 | #ifdef __cplusplus |
60 | } |
61 | #endif |
62 | |
63 | #endif |
64 |