feat: adopt IINA-style playback window

This commit is contained in:
2026-10-10 01:35:49 +02:00
parent df2456f559
commit 462cb52eb2
8 changed files with 654 additions and 76 deletions
+3
View File
@@ -18,6 +18,9 @@ public:
bool configure_audio(std::string &error);
bool start(std::string &error);
void pause();
// Atomic target gain; callback slews to it within 240 frames (5 ms).
void set_volume(float normalized0to1) noexcept;
float volume() const noexcept;
// Called with audio stopped. Clears audio and video from the old timeline.
void reset();
std::size_t write(const float *samples, std::size_t frames, double pts);