b.liu | 4e243dc | 2023-11-27 11:20:00 +0800 | [diff] [blame^] | 1 | #include "lynq-qser-audio.h" |
liubin | 281ac46 | 2023-07-19 14:22:54 +0800 | [diff] [blame] | 2 | #include "mbtk_type.h" |
b.liu | 4e243dc | 2023-11-27 11:20:00 +0800 | [diff] [blame^] | 3 | #include "mbtk_log.h" |
b.liu | 5fa9e77 | 2023-11-23 18:00:55 +0800 | [diff] [blame] | 4 | |
b.liu | 4e243dc | 2023-11-27 11:20:00 +0800 | [diff] [blame^] | 5 | int qser_AudPlayer_Open(char* device, _cb_onPlayer cb_fun) |
liubin | 281ac46 | 2023-07-19 14:22:54 +0800 | [diff] [blame] | 6 | { |
b.liu | 4e243dc | 2023-11-27 11:20:00 +0800 | [diff] [blame^] | 7 | UNUSED(device); |
8 | UNUSED(cb_fun); | ||||
liubin | 281ac46 | 2023-07-19 14:22:54 +0800 | [diff] [blame] | 9 | |
10 | return 0; | ||||
liubin | 281ac46 | 2023-07-19 14:22:54 +0800 | [diff] [blame] | 11 | } |
12 | |||||
b.liu | 4e243dc | 2023-11-27 11:20:00 +0800 | [diff] [blame^] | 13 | int qser_AudPlayer_PlayFrmFile(int hdl, const char *fd, int offset) |
liubin | 281ac46 | 2023-07-19 14:22:54 +0800 | [diff] [blame] | 14 | { |
b.liu | 4e243dc | 2023-11-27 11:20:00 +0800 | [diff] [blame^] | 15 | UNUSED(hdl); |
16 | UNUSED(fd); | ||||
17 | UNUSED(offset); | ||||
b.liu | 5fa9e77 | 2023-11-23 18:00:55 +0800 | [diff] [blame] | 18 | |
19 | return 0; | ||||
liubin | 281ac46 | 2023-07-19 14:22:54 +0800 | [diff] [blame] | 20 | } |
21 | |||||
b.liu | 4e243dc | 2023-11-27 11:20:00 +0800 | [diff] [blame^] | 22 | int qser_AudPlayer_Pause(int hdl) |
liubin | 281ac46 | 2023-07-19 14:22:54 +0800 | [diff] [blame] | 23 | { |
b.liu | 4e243dc | 2023-11-27 11:20:00 +0800 | [diff] [blame^] | 24 | UNUSED(hdl); |
b.liu | 5fa9e77 | 2023-11-23 18:00:55 +0800 | [diff] [blame] | 25 | |
b.liu | 5fa9e77 | 2023-11-23 18:00:55 +0800 | [diff] [blame] | 26 | return 0; |
b.liu | 4e243dc | 2023-11-27 11:20:00 +0800 | [diff] [blame^] | 27 | } |
28 | |||||
29 | int qser_AudPlayer_Resume(int hdl) | ||||
30 | { | ||||
31 | UNUSED(hdl); | ||||
32 | |||||
33 | return 0; | ||||
34 | } | ||||
35 | |||||
36 | void qser_AudPlayer_Stop(int hdl) | ||||
37 | { | ||||
38 | UNUSED(hdl); | ||||
39 | |||||
40 | return 0; | ||||
liubin | 281ac46 | 2023-07-19 14:22:54 +0800 | [diff] [blame] | 41 | } |
42 | |||||
43 | |||||
b.liu | 4e243dc | 2023-11-27 11:20:00 +0800 | [diff] [blame^] | 44 | void qser_AudPlayer_Close(int hdl) |
liubin | 281ac46 | 2023-07-19 14:22:54 +0800 | [diff] [blame] | 45 | { |
b.liu | 4e243dc | 2023-11-27 11:20:00 +0800 | [diff] [blame^] | 46 | UNUSED(hdl); |
47 | |||||
liubin | 281ac46 | 2023-07-19 14:22:54 +0800 | [diff] [blame] | 48 | return 0; |
b.liu | 4e243dc | 2023-11-27 11:20:00 +0800 | [diff] [blame^] | 49 | } |
50 | |||||
51 | |||||
52 | int qser_AudRecorder_Open(char* device, _cb_onPlayer cb_fun) | ||||
53 | { | ||||
54 | UNUSED(device); | ||||
55 | UNUSED(cb_fun); | ||||
56 | |||||
57 | |||||
b.liu | 5fa9e77 | 2023-11-23 18:00:55 +0800 | [diff] [blame] | 58 | return 0; |
b.liu | 4e243dc | 2023-11-27 11:20:00 +0800 | [diff] [blame^] | 59 | } |
60 | |||||
61 | int qser_AudRecorder_StartRecord(int hdl, const char *fd, int offset) | ||||
62 | { | ||||
63 | UNUSED(hdl); | ||||
64 | UNUSED(fd); | ||||
65 | UNUSED(offset); | ||||
66 | |||||
67 | |||||
68 | return 0; | ||||
69 | } | ||||
70 | |||||
71 | int qser_AudRecorder_Pause(void) | ||||
72 | { | ||||
73 | |||||
74 | return 0; | ||||
75 | } | ||||
76 | |||||
77 | int qser_AudRecorder_Resume(void) | ||||
78 | { | ||||
79 | |||||
80 | return 0; | ||||
81 | } | ||||
82 | |||||
83 | void qser_AudRecorder_Stop(void) | ||||
84 | { | ||||
85 | |||||
86 | } | ||||
87 | |||||
88 | void qser_AudRecorder_Close(void) | ||||
89 | { | ||||
90 | |||||
91 | } | ||||
92 | |||||
93 | void qser_Audio_Deinit(void) | ||||
94 | { | ||||
95 | |||||
liubin | 281ac46 | 2023-07-19 14:22:54 +0800 | [diff] [blame] | 96 | } |
97 |