Audio-resampling isn't actually performed?

Sebastian Dröge sebastian at centricular.com
Thu Nov 12 10:03:35 UTC 2020


On Thu, 2020-11-12 at 20:44 +1100, Matthew Waters wrote:
> No, the buffer size is not a direct relation with the sample rate of
> the audio.  There can be any number of samples within an audio buffer
> that still have the same sample rate.
> It sounds like you probably want to base your element on
> GstAudioAggregator though for the audio-specifics.

Or alternatively you could make use of GstAdapter for converting the
input buffers with arbitrary number of samples into equally-sized
buffers.

However GstAudioAggregator also takes care of inter-stream
synchronization and various other things that are not too easy to
reimplement, so if you need that it would be a better idea to use it
instead.


-- 
Sebastian Dröge, Centricular Ltd · https://www.centricular.com


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20201112/0805a9d0/attachment-0001.htm>


More information about the gstreamer-devel mailing list