equal
deleted
inserted
replaced
34 #include <pthreadtypes.h> |
34 #include <pthreadtypes.h> |
35 #include <e32def.h> |
35 #include <e32def.h> |
36 #include <e32cons.h> |
36 #include <e32cons.h> |
37 #include <e32std.h> |
37 #include <e32std.h> |
38 #include <e32debug.h> |
38 #include <e32debug.h> |
|
39 #include <AudioInput.h> |
39 #include <gst/gstbuffer.h> |
40 #include <gst/gstbuffer.h> |
40 #include <gst/gst.h> |
41 #include <gst/gst.h> |
41 |
42 |
42 |
43 |
43 #include <SpeechEncoderConfig.h> |
44 #include <SpeechEncoderConfig.h> |
84 { |
85 { |
85 |
86 |
86 public: |
87 public: |
87 CActiveListener *AL; |
88 CActiveListener *AL; |
88 CActiveScheduler *as; |
89 CActiveScheduler *as; |
89 TInt init_complete; |
|
90 CMMFBuffer *buffer; |
90 CMMFBuffer *buffer; |
91 CMMFDevSound *dev_sound; |
91 CMMFDevSound *dev_sound; |
92 TMMFCapabilities caps; |
92 TMMFCapabilities caps; |
93 int buffersize; |
93 int buffersize; |
94 int gain; |
94 int gain; |
95 int dev_count; |
95 int dev_count; |
96 TInt iCallbackError; |
96 TInt iCallbackError; |
97 TUint32 fourcc; |
97 TUint32 fourcc; |
98 int bufferreadpos; |
98 int bufferreadpos; |
99 guint* supportedbitrates; |
99 guint* supportedbitrates; |
|
100 int iSamplesRecorded; |
|
101 TUint speechbitrate; |
100 CSpeechEncoderConfig* iSpeechEncoderConfig; |
102 CSpeechEncoderConfig* iSpeechEncoderConfig; |
101 CG711EncoderIntfc* iG711EncoderIntfc; |
103 CG711EncoderIntfc* iG711EncoderIntfc; |
102 CG729EncoderIntfc* iG729EncoderIntfc; |
104 CG729EncoderIntfc* iG729EncoderIntfc; |
103 CIlbcEncoderIntfc* iIlbcEncoderIntfc; |
105 CIlbcEncoderIntfc* iIlbcEncoderIntfc; |
|
106 CAudioInput* iAudoInputRecord; |
104 |
107 |
105 public: |
108 public: |
106 DevSoundWrapperSrc(); |
109 DevSoundWrapperSrc(); |
107 |
110 |
108 void InitializeComplete(TInt aError); |
111 void InitializeComplete(TInt aError); |
139 void set_fourcc(DevSoundWrapperSrc *handle,int fourcc); |
142 void set_fourcc(DevSoundWrapperSrc *handle,int fourcc); |
140 |
143 |
141 int open_devsound(DevSoundWrapperSrc **handle); |
144 int open_devsound(DevSoundWrapperSrc **handle); |
142 int open_device(DevSoundWrapperSrc **handle); |
145 int open_device(DevSoundWrapperSrc **handle); |
143 int initialize_devsound(GstDevsoundSrc* ds); |
146 int initialize_devsound(GstDevsoundSrc* ds); |
|
147 int pause_devsound(GstDevsoundSrc *ds); |
|
148 int stop_devsound(GstDevsoundSrc *ds); |
|
149 int resume_devsound(GstDevsoundSrc *ds); |
144 int close_devsound(GstDevsoundSrc* ds); |
150 int close_devsound(GstDevsoundSrc* ds); |
145 |
151 |
146 int SetConfigurations(DevSoundWrapperSrc *handle); |
152 int SetConfigurations(DevSoundWrapperSrc *handle); |
147 int reset_devsound(DevSoundWrapperSrc *handle); |
153 int reset_devsound(DevSoundWrapperSrc *handle); |
148 |
154 |
169 int get_g729_vad_mode(DevSoundWrapperSrc *handle,TBool* aVadMode); |
175 int get_g729_vad_mode(DevSoundWrapperSrc *handle,TBool* aVadMode); |
170 |
176 |
171 int set_ilbc_encoder_mode(DevSoundWrapperSrc *handle,enum TIlbcEncodeMode aEncodeMode); |
177 int set_ilbc_encoder_mode(DevSoundWrapperSrc *handle,enum TIlbcEncodeMode aEncodeMode); |
172 int set_ilbc_vad_mode(DevSoundWrapperSrc *handle,gboolean aVadMode); |
178 int set_ilbc_vad_mode(DevSoundWrapperSrc *handle,gboolean aVadMode); |
173 int get_ilbc_vad_mode(DevSoundWrapperSrc *handle,gboolean* aVadMode); |
179 int get_ilbc_vad_mode(DevSoundWrapperSrc *handle,gboolean* aVadMode); |
174 |
180 void update_devsound_speech_bitrate(DevSoundWrapperSrc *handle, TUint bitrate); |
|
181 |
|
182 /// getting the call back error |
|
183 int call_back_error(DevSoundWrapperSrc* dsPtr); |
175 |
184 |
176 #ifdef __cplusplus |
185 #ifdef __cplusplus |
177 }//extern c |
186 }//extern c |
178 #endif |
187 #endif |