Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 51360ab09f0c939efb9353ceb1336d06dba1097c
https://github.com/WebKit/WebKit/commit/51360ab09f0c939efb9353ceb1336d06dba1097c
Author: Philippe Normand <[email protected]>
Date: 2026-01-27 (Tue, 27 Jan 2026)
Changed paths:
M Source/WebCore/platform/audio/gstreamer/AudioDestinationGStreamer.cpp
M Source/WebCore/platform/audio/gstreamer/AudioSourceProviderGStreamer.cpp
M Source/WebCore/platform/audio/gstreamer/AudioSourceProviderGStreamer.h
M Source/WebCore/platform/mediastream/gstreamer/GStreamerCapturer.cpp
Log Message:
-----------
[GStreamer][WebAudio] Use the audio source sample rate in the
AudioSourceProvider
https://bugs.webkit.org/show_bug.cgi?id=306272
Reviewed by Xabier Rodriguez-Calvar.
The WebAudio bus can operate a various sample rates, we don't need to hardcode
the rate used in the
audio source provider. By using the one from the audio input we can potentially
avoid conversions.
Driving-by: Re-add a queue before the audio destination sink.
* Source/WebCore/platform/audio/gstreamer/AudioDestinationGStreamer.cpp:
(WebCore::AudioDestinationGStreamer::initializePipeline):
* Source/WebCore/platform/audio/gstreamer/AudioSourceProviderGStreamer.cpp:
(WebCore::AudioSourceProviderGStreamer::AudioSourceProviderGStreamer):
(WebCore::AudioSourceProviderGStreamer::~AudioSourceProviderGStreamer):
(WebCore::AudioSourceProviderGStreamer::provideInput):
(WebCore::AudioSourceProviderGStreamer::setClient):
(WebCore::AudioSourceProviderGStreamer::handleNewDeinterleavePad):
(WebCore::AudioSourceProviderGStreamer::handleRemovedDeinterleavePad):
(WebCore::AudioSourceProviderGStreamer::determineSampleRate):
(WebCore::onGStreamerDeinterleaveReadyCallback): Deleted.
(WebCore::AudioSourceProviderGStreamer::deinterleavePadsConfigured): Deleted.
* Source/WebCore/platform/audio/gstreamer/AudioSourceProviderGStreamer.h:
* Source/WebCore/platform/mediastream/gstreamer/GStreamerCapturer.cpp:
(WebCore::GStreamerCapturer::createSource):
Canonical link: https://commits.webkit.org/306268@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications