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