Playback buffer notification callbacks

Nathanael D. Noblet nathanael at gnat.ca
Tue Apr 12 14:06:46 PDT 2011


On 04/11/2011 09:48 AM, ls ag wrote:
> I need exactly what I specified in my original e-mail.
>
> On Windows you open a output device with waveOutOpen specifying the
> callback function. You then write audio samples to output device with
> waveOutWrite, when the output device has finished playing each sample it
> calls the callback function you specified (or signals the event if you
> specified the event object).
>
> On Android you specify the period in PCM samples for periodic
> notifications with AudioTrack.setPositionNotificationPeriod and the
> audio framework calls your provided
> AudioTrack.onPlaybackPositionUpdateListener interface.
>
>
> I need the same functionality for gstreamer. Is this clear?

I think what you are describing is clear. However I think (I'm a total 
noob with gstreamer just FYI) that the confusion is that gstreamer 
abstracts the hardware away. You don't deal with the low level details 
you are describing. functions like waveOutOpen and such would be within 
a gstreamer plugin for writing to a wave device in windows. However 
gstreamer is intended to be used by apps...and not directly talk to any 
hardware.


-- 
Nathanael d. Noblet
t 403.875.4613


More information about the gstreamer-devel mailing list