blob: 16333ac2c2021f37bec35c4794d00f8cbedd6e47
1 | /* |
2 | add a mediasource interface just like stagefright player |
3 | for the input port data feed of OMX decoder |
4 | author: jian.xu@amlogic.com |
5 | 27/2/2013 |
6 | */ |
7 | |
8 | #include <stdio.h> |
9 | #include <stdarg.h> |
10 | #include <string.h> |
11 | #include <android/log.h> |
12 | #include <cutils/properties.h> |
13 | |
14 | #include "audio_mediasource.h" |
15 | |
16 | extern "C" int read_buffer(unsigned char *buffer,int size); |
17 | |
18 | #define LOG_TAG "Audio_Medissource" |
19 | #define ALOGI(...) __android_log_print(ANDROID_LOG_INFO,LOG_TAG,__VA_ARGS__) |
20 | #define ALOGE(...) __android_log_print(ANDROID_LOG_ERROR,LOG_TAG,__VA_ARGS__) |
21 | |
22 | namespace android { |
23 | |
24 | AudioMediaSource::AudioMediaSource() |
25 | { |
26 | ALOGI("%s %d \n",__FUNCTION__,__LINE__); |
27 | } |
28 | |
29 | |
30 | AudioMediaSource::~AudioMediaSource() |
31 | { |
32 | ALOGI("%s %d \n",__FUNCTION__,__LINE__); |
33 | } |
34 | |
35 | |
36 | } // namespace android |
37 | |
38 |