audio: The delay vfunc returns the number of frames, not samples
https://bugzilla.gnome.org/show_bug.cgi?id=748289
This commit is contained in:
parent
c680e324bc
commit
531b9ba951
@ -220,7 +220,7 @@ struct _GstAudioRingBuffer {
|
|||||||
* @pause: pause processing of samples
|
* @pause: pause processing of samples
|
||||||
* @resume: resume processing of samples after pause
|
* @resume: resume processing of samples after pause
|
||||||
* @stop: stop processing of samples
|
* @stop: stop processing of samples
|
||||||
* @delay: get number of samples queued in device
|
* @delay: get number of frames queued in device
|
||||||
* @activate: activate the thread that starts pulling and monitoring the
|
* @activate: activate the thread that starts pulling and monitoring the
|
||||||
* consumed segments in the device.
|
* consumed segments in the device.
|
||||||
* @commit: write samples into the ringbuffer
|
* @commit: write samples into the ringbuffer
|
||||||
|
@ -66,7 +66,7 @@ struct _GstAudioSink {
|
|||||||
* @unprepare: Undo operations done in prepare.
|
* @unprepare: Undo operations done in prepare.
|
||||||
* @close: Close the device.
|
* @close: Close the device.
|
||||||
* @write: Write data to the device.
|
* @write: Write data to the device.
|
||||||
* @delay: Return how many samples are still in the device. This is used to
|
* @delay: Return how many frames are still in the device. This is used to
|
||||||
* drive the synchronisation.
|
* drive the synchronisation.
|
||||||
* @reset: Returns as quickly as possible from a write and flush any pending
|
* @reset: Returns as quickly as possible from a write and flush any pending
|
||||||
* samples from the device.
|
* samples from the device.
|
||||||
|
@ -65,7 +65,7 @@ struct _GstAudioSrc {
|
|||||||
* @unprepare: undo the configuration
|
* @unprepare: undo the configuration
|
||||||
* @close: close the device
|
* @close: close the device
|
||||||
* @read: read samples from the audio device
|
* @read: read samples from the audio device
|
||||||
* @delay: the number of samples queued in the device
|
* @delay: the number of frames queued in the device
|
||||||
* @reset: unblock a read to the device and reset.
|
* @reset: unblock a read to the device and reset.
|
||||||
*
|
*
|
||||||
* #GstAudioSrc class. Override the vmethod to implement
|
* #GstAudioSrc class. Override the vmethod to implement
|
||||||
|
Loading…
x
Reference in New Issue
Block a user