Discussion Board
Recording audio using 'CMdaAudioRecorderUtility'
2004-09-06, 16:30
#1
Regular Contributor
Hi.
I am trying to use the 'CMdaAudioRecorderUtility' object for recording audio on Nokia 3650 (OS 6.1) however each time I am attempting to do so, the application crashes.
this is what I am doing for opening the device:
// Begining for code:
TMdaRawAudioClipFormat m_rawAudioClipFormat;
TMdaU8PcmRawAudioCodec m_rawCodec;
TMdaAudioDataSettings m_audioSettings;
m_audioSettings.Query();
//
m_audioSettings.iSampleRate = sr;
m_audioSettings.iChannels = channels;
m_audioSettings.iFlags = TMdaAudioDataSettings::ENoNetworkRouting;
m_audioSettings.iMaxVolume = 1;
//
m_pRecordedUtility = CMdaAudioRecorderUtility::NewL(m_recorderObserver);
m_pRecordedUtility->OpenL( &m_clipLocation, &m_rawAudioClipFormat,
&m_rawCodec ,&m_audioSettings);
//// end of code
the application crashes when I am trying to perform:
pRecordedUtility->Play();
// or
pRecordedUtility->Record();
//
Am I opening the device correctly ?
if not, what am I doing wrong ?
Is there any sample code available for doing what I am trying to do ?
Thanks in advance !
Shai . K
Nokia Developer Expert
are you checking the states in your MoscoStateChangeEvent() function. Just that if you have errors already on opening the file, and that the file status is open before trying to record/play on it.
yucca
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules