Hi Nikhil,

please provide some more info like

1. What is the size of track-base you have allocated?
2. What is the (userSize) size of data ( frames or bytes ) the
AudioTrack::Write() writes ? is it constant or varying?
3. What is the configuration of your audio hardware , i mean how many frames
or bytes it can accept per write.
4. The PCM data you are playing is of what type MUSIC or RINGTONE or MIDI?
5. what is the total size of your PCM data ? is it mono or stereo? is it
8-bit or 16-bit?

regards,
bas.


On 2/25/09, Nikhil <[email protected]> wrote:
>
>
> Hi All,
>
> I am trying to play sound buffer for streaming sound(PCM sound data)
> through a library in Android framework.
>
> I am trying by using AudioTrack::write() for passing sound buffer to
> Audio Flinger and AudioTrack::start() function for playing that sound.
> But it's required to get a callback once each buffer is played before
> sending the next buffer for playing.
>
> Can anyone help me to know if there is anyway to get a callback from
> AudioTrack once the playback of given buffer is completed?
>
> or is there any other way to play PCM data in Android?
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"android-framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to