The CMdaAudioOutputStream is repeatedly playing the Buffer with out stopping

Login to reply to this topic.
Mon, 2007-12-10 08:01
Joined: 2006-12-19
Forum posts: 72

Hi,

I am playing a stream from a server through CMdaAdioOututStream API.
First I am converting the incoming stream to 16 bit pcm through the s/w codec in 2.1 sdk . I have taken the size of the inputbuffer to the codec equals to the lentgh of the incoming stream and that of outputbuffer equals 10 times of input buffer.

I am sending the data buffer contained in the CMMFDescriptorBuffer object (as the input and output to Codec's ProcessL is of type this object) to the WriteL() of CMdaAdioOututStream.

The problem is the same song is being reaptedly played that has been decoded first.
The stream is obtained from VLC.

I want my application to play each songs that are being streamed from VLC one by one.

Where may be the problem ?
Any better idea would be highly appriciated.

Thanks and Regards,
Netra


Mon, 2007-12-31 05:49
Joined: 2007-09-20
Forum posts: 97
Re: The CMdaAudioOutputStream is repeatedly playing the Buffer

Hi,

Check the contents of the descroptor being passed to WriteL(). Make sure that the data in the buffer is the correct one.

It is very difficult say something without actually taking a look into the code.


Chao,
Raghav

Fri, 2008-01-04 12:49
Joined: 2004-07-17
Forum posts: 110
Re: The CMdaAudioOutputStream is...

I agree completely with the previous post: without seeing the code it's impossible to say. I know of at least one defect in Symbian's CMdaAudioOutputStream implementation but it's more likely to be your code that's wrong.

  • Login to reply to this topic.