ladybird/Libraries/LibMedia/Forward.h
Zaggy1024 0ff330c906 LibMedia: Play audio through PlaybackManager using Providers/Sinks
This commit implements the functionality to play back audio through
PlaybackManager.

To decode the audio data, AudioDataProviders are created for each track
in the provided media data. These providers will fill their audio block
queue, then sit idle until their corresponding tracks are enabled.

In order to output the audio, one AudioMixingSink is created which
manages a PlaybackStream which requests audio blocks from multiple
AudioDataProviders and mixes them into one buffer with sample-perfect
precision.
2025-10-27 17:28:49 -07:00

31 lines
562 B
C++

/*
* Copyright (c) 2023, Tim Flynn <trflynn89@serenityos.org>
* Copyright (c) 2025, Gregory Bertilson <gregory@ladybird.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
namespace Media {
class CodedFrame;
class AudioDataProvider;
class AudioDecoder;
class AudioMixingSink;
class AudioSink;
class DecoderError;
class Demuxer;
class DisplayingVideoSink;
class FrameQueueItem;
class MediaTimeProvider;
class MutexedDemuxer;
class PlaybackManager;
class Track;
class VideoDataProvider;
class VideoDecoder;
class VideoFrame;
class VideoSink;
}