ladybird/Libraries/LibMedia/GenericTimeProvider.h
Zaggy1024 eeff03c980 LibMedia: Rename some folders/identifiers for the upcoming refactor
- Provider -> producer
- (Audio|Video)DataProvider -> Decoded(Audio|Video)Producer
- MediaTimeProvider remains suffixed Provider, moves out of the
  Providers folder to the root of LibMedia

This brings the naming more in line with the intended split
functionality split between different nodes in the pipeline.
2026-05-13 02:05:35 -05:00

28 lines
603 B
C++

/*
* Copyright (c) 2025, Gregory Bertilson <gregory@ladybird.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include "MediaTimeProvider.h"
namespace Media {
class GenericTimeProvider final : public MediaTimeProvider {
public:
GenericTimeProvider();
virtual ~GenericTimeProvider() override;
virtual AK::Duration current_time() const override;
virtual void resume() override;
virtual void pause() override;
virtual void set_time(AK::Duration) override;
private:
Optional<MonotonicTime> m_monotonic_time_on_resume;
AK::Duration m_media_time;
};
}