Hi Ravi,

I am working on aac codec integration to Android Platform.It is
integrated and I am able to play a test_adts.aac file also, But the
sound quality is not as expected.

Component works as follows -
==============================

- In ComponentInit() the component thread is created and structure for
private data of the component is input to the thread.
  (The private data of the componenet includes input and output port
related information, buffer   related information,  specifications for
audio decoder..etc).

- When EmptyThisBuffer() gets called in the main thread, I m setting
one flag and writting that to the pipe which is accessed in the
component thread.I am not writing the buffer contents to the pipe.It
is passed to the component thread as parameter.

- The component thread keeps on checking for the flag which gets set
in the EmptyThisBuffer.If it finds the flag as set and the state is
OMX_StateExecuting, the decoding process starts.

- As PV sends raw data (with stripped header) to the component, my
codec-component is implemented in the way that it can handle raw data.

- But the issue is when I am testing my decoder separately it works
fine.
  When I integrate this with the PV framework and play an audio file
(ADTS file), I am getting the sound, but the sound quality is not at
all  good.

- And also I have crosschecked the decoded o/p of my test application
when I am testing my component separately and the one when I play in
PV  framework , it mismatches.

I posted this query earlier also ,but now I don't see it in the group,
so posting it once again.

Yes Ravi,  I have crosschecked input stream to my "test application"
with the input to the component in PV, there is no difference in that.
But I really don't understand why the output mismatches.

I am severely stuck here.Please help where I am going wrong.

Regards,
Anupama

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to