feat: adopt IINA-style playback window
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user