mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 12:20:00 +01:00
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.
31 lines
562 B
C++
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;
|
|
|
|
}
|