Hi.
Have anyone used CMdaAudioPlayerUtility to stream audio data to CODEC? I have been trying this for couple of days now, but I get strange errors while using it. I will be posting the code snippet with this. Let me know if any of you guys were able to push something to the CODEC using this damn SDK. If so, please post a sample code so that I can compare my code with it and check whether it is my fault or Symbian/Nokia's disgusting audio support on ER6. Worst of all, they are not supporting ER5 audio APIs in ER6 and left me high and dry without being able to port my previous code to ER6.
Here goes my code snippet :-
CMdaAudioPlayerUtility iPlayer;
TInt8* pAudioData = new TInt8[BUFFERSIZE];
// I fill WAV audio data(WAV header info is not included) to pAudioData here
TPtrC8* pData = new TPtrC8((const TUint8*)pAudioData, BUFFERSIZE);
iPlayer = CMdaAudioPlayerUtility::NewDesPlayerL((TDes8&)*pData, *this);
iPlayer.Play();
........
I have defined a class for the above code and it also the callback implementation. But, I get 'KErrNotSupported' at 'MapcInitComplete'. So, I thought it might be due to my data(since I omitted header info) and included WAV header info. in it. Now, it complains 'KErrBadDescriptor'. BTW, the descriptor remains throughout the lifetime of the object. Let me know if you guys were able to crack down this.
Thanks in advance!!!
Posted by Rajesh Ajjanagadde, rajesh@synovial.com
on February 16, 2002 at 02:29



