output/Jack: reorder methods
This commit is contained in:
parent
b57a272f67
commit
ff1b435232
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user