Commit ff1b4352 authored by Max Kellermann's avatar Max Kellermann

output/Jack: reorder methods

parent b57a272f
......@@ -96,15 +96,6 @@ struct JackOutput final : AudioOutput {
shutdown = true;
}
void Enable() override;
void Disable() noexcept override;
void Open(AudioFormat &new_audio_format) override;
void Close() noexcept override {
Stop();
}
/**
* Throws #std::runtime_error on error.
*/
......@@ -125,6 +116,17 @@ struct JackOutput final : AudioOutput {
*/
size_t WriteSamples(const float *src, size_t n_frames);
/* virtual methods from class AudioOutput */
void Enable() override;
void Disable() noexcept override;
void Open(AudioFormat &new_audio_format) override;
void Close() noexcept override {
Stop();
}
std::chrono::steady_clock::duration Delay() const noexcept override {
return pause && !shutdown
? std::chrono::seconds(1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment