Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Contributor
albertpv
Posts: 45
Registered: 12-16-2010
My Carrier: Vodafone

[audio] Cannot play x-wav until a big amount of bytes are received

Hi

 

 I noticed that the player when initialized like this:
_player = Manager.createPlayer(stream, "audio/x-wav");

it does not start to play received audio on the stream immediately. It seems to start when its internal buffer is full and this happens at : (80.000 bytes = 5 sec) .
Is there a way to reduce this buffer size? Or is there a way to start the audio without needing to wait 5 second before playing?

 

The device where this happens is BB Storm on OS 6.

Please use plain text.
Contributor
sarbyn
Posts: 25
Registered: 10-26-2010

Re: [audio] Cannot play x-wav until a big amount of bytes are received

I have similar issue with AMR streaming....nobody can help us?

Please use plain text.
Contributor
albertpv
Posts: 45
Registered: 12-16-2010
My Carrier: Vodafone

Re: [audio] Cannot play x-wav until a big amount of bytes are received

even using this sample http://supportforums.blackberry.com/t5/Java-Development/Streaming-media-Start-to-finish/ta-p/488255 and reducing the buffer to less than 80000 bytes I cannot achieve to hear sound until the buffer of the player contains 80000 bytes.

 

And I do receive the event initialBufferCompleted on the size I set...so this is a problem

 

 

 

Please use plain text.