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