equal
deleted
inserted
replaced
281 if (!(*handle)->AL || !((*handle)->AL)->asw || !(*handle)->dev_sound |
281 if (!(*handle)->AL || !((*handle)->AL)->asw || !(*handle)->dev_sound |
282 || !(*handle)->as) |
282 || !(*handle)->as) |
283 { |
283 { |
284 retcode = KErrNoMemory; |
284 retcode = KErrNoMemory; |
285 } |
285 } |
|
286 |
|
287 TRAP(retcode ,(*handle)->iAudoInputRecord = CAudioInput::NewL(*(*handle)->dev_sound)); |
|
288 RArray<CAudioInput::TAudioInputPreference> inputArray; |
|
289 inputArray.Append( CAudioInput::EDefaultMic ); |
|
290 // Set Audio Input |
|
291 (*handle)->iAudoInputRecord->SetAudioInputL( inputArray.Array( ) ); |
|
292 inputArray.Close(); |
286 |
293 |
287 TRACE_PRN_FN_EXT; |
294 TRACE_PRN_FN_EXT; |
288 |
295 |
289 return retcode; |
296 return retcode; |
290 } |
297 } |
298 g_list_foreach(ds->supportedbitrates, (GFunc) g_free, NULL); |
305 g_list_foreach(ds->supportedbitrates, (GFunc) g_free, NULL); |
299 g_list_free(ds->supportedbitrates); |
306 g_list_free(ds->supportedbitrates); |
300 |
307 |
301 g_list_foreach(ds->fmt, (GFunc) g_free, NULL); |
308 g_list_foreach(ds->fmt, (GFunc) g_free, NULL); |
302 g_list_free(ds->fmt); |
309 g_list_free(ds->fmt); |
303 |
310 |
|
311 delete (STATIC_CAST(DevSoundWrapperSrc*, ds->handle))->iAudoInputRecord; |
304 delete ds->handle; |
312 delete ds->handle; |
305 TRACE_PRN_FN_EXT; |
313 TRACE_PRN_FN_EXT; |
306 return 0; |
314 return 0; |
307 } |
315 } |
308 /************************************************************/ |
316 /************************************************************/ |