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