output/Jack: reorder methods

This commit is contained in:
Max Kellermann
2017-08-11 12:39:42 +02:00
parent b57a272f67
commit ff1b435232

View File

@@ -96,15 +96,6 @@ struct JackOutput final : AudioOutput {
shutdown = true; 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. * Throws #std::runtime_error on error.
*/ */
@@ -125,6 +116,17 @@ struct JackOutput final : AudioOutput {
*/ */
size_t WriteSamples(const float *src, size_t n_frames); 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 { std::chrono::steady_clock::duration Delay() const noexcept override {
return pause && !shutdown return pause && !shutdown
? std::chrono::seconds(1) ? std::chrono::seconds(1)