From 8dd16259287f58f9273002717ec4d27e97127719 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 12 Jun 2024 07:43:14 +0200 Subject: Merging upstream version 127.0. Signed-off-by: Daniel Baumann --- dom/media/MediaTrackGraphImpl.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'dom/media/MediaTrackGraphImpl.h') diff --git a/dom/media/MediaTrackGraphImpl.h b/dom/media/MediaTrackGraphImpl.h index 5daed83ef3..44c04caaa0 100644 --- a/dom/media/MediaTrackGraphImpl.h +++ b/dom/media/MediaTrackGraphImpl.h @@ -509,6 +509,12 @@ class MediaTrackGraphImpl : public MediaTrackGraph, void NotifyInputData(const AudioDataValue* aBuffer, size_t aFrames, TrackRate aRate, uint32_t aChannels, uint32_t aAlreadyBuffered) override; + /* Called on the main thread after an AudioCallbackDriver has attempted an + * operation to set aRequestedParams on the cubeb stream. */ + void NotifySetRequestedInputProcessingParamsResult( + AudioCallbackDriver* aDriver, + cubeb_input_processing_params aRequestedParams, + Result&& aResult) override; /* Called every time there are changes to input/output audio devices like * plug/unplug etc. This can be called on any thread, and posts a message to * the main thread so that it can post a message to the graph thread. */ @@ -586,6 +592,13 @@ class MediaTrackGraphImpl : public MediaTrackGraph, AudioInputType AudioInputDevicePreference(CubebUtils::AudioDeviceID aID); + /** + * The input processing params requested for any processing tracks tied to the + * input device with id aID. + */ + cubeb_input_processing_params RequestedAudioInputProcessingParams( + CubebUtils::AudioDeviceID aID); + double MediaTimeToSeconds(GraphTime aTime) const { NS_ASSERTION(aTime > -TRACK_TIME_MAX && aTime <= TRACK_TIME_MAX, "Bad time"); -- cgit v1.2.3