<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
I need exactly what I specified in my original e-mail. <br><br>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).<br><br>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.<br><br><br>I need the same functionality for gstreamer. Is this clear?<br><br>> Date: Mon, 11 Apr 2011 17:45:32 +0300<br>> From: ensonic@hora-obscura.de<br>> To: gstreamer-devel@lists.freedesktop.org<br>> Subject: Re: Playback buffer notification callbacks<br>> <br>> On 11.04.2011 11:21, ls ag wrote:<br>> > I am not sure waht and why "is not possible and not useful"?<br>> > Getting notification of a data buffer played? It is a fundamental of<br>> > every playback framework.<br>> <br>> no, its not. such callback are used on the audio api level like alsa,<br>> pulse, jack, ... Maybe you tell us what for you need it.<br>> <br>> Stefan<br>> <br>> > <br>> > > Date: Mon, 11 Apr 2011 10:13:32 +0200<br>> > > From: wim.taymans@gmail.com<br>> > > To: gstreamer-devel@lists.freedesktop.org<br>> > > Subject: Re: Playback buffer notification callbacks<br>> > > CC: lsag02@hotmail.com<br>> > ><br>> > > On 04/10/2011 04:11 PM, ls ag wrote:<br>> > > > I have close to zero experience and knowledge of gstreamer.<br>> > However, I<br>> > > > have very extensive experience with other audio playback<br>> > framework, on<br>> > > > windows and android being some of them.<br>> > > ><br>> > > > How with gstreamer do I define a callback that will be called when<br>> > the<br>> > > > sound card has played the audio buffer previously sent to it?<br>> > > > Equivalent to Windows waveOutProc and Android<br>> > > > AudioTrack.OnPlaybackPositionUpdateListener.onMarkerReached?<br>> > > This is not possible and not useful, check out the documentation about<br>> > > GStreamer to understand<br>> > > why.<br>> > ><br>> > > Wim<br>> > > ><br>> > > ><br>> > > > _______________________________________________<br>> > > > gstreamer-devel mailing list<br>> > > > gstreamer-devel@lists.freedesktop.org<br>> > > > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel<br>> > ><br>> > > _______________________________________________<br>> > > gstreamer-devel mailing list<br>> > > gstreamer-devel@lists.freedesktop.org<br>> > > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel<br>> ><br>> ><br>> > _______________________________________________<br>> > gstreamer-devel mailing list<br>> > gstreamer-devel@lists.freedesktop.org<br>> > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel<br>> <br>> _______________________________________________<br>> gstreamer-devel mailing list<br>> gstreamer-devel@lists.freedesktop.org<br>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel<br>                                            </body>
</html>