From 9d24f68f5127838b6c0b7a75a6724accf4596806 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 5 Aug 2019 09:27:04 +0200 Subject: [PATCH] output/jack: convert to class, make attributes/methods private --- src/output/plugins/JackOutputPlugin.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/output/plugins/JackOutputPlugin.cxx b/src/output/plugins/JackOutputPlugin.cxx index cedef8f31..2c13f7845 100644 --- a/src/output/plugins/JackOutputPlugin.cxx +++ b/src/output/plugins/JackOutputPlugin.cxx @@ -43,7 +43,7 @@ static constexpr unsigned MAX_PORTS = 16; static constexpr size_t jack_sample_size = sizeof(jack_default_audio_sample_t); -struct JackOutput final : AudioOutput { +class JackOutput final : public AudioOutput { /** * libjack options passed to jack_client_open(). */ @@ -89,8 +89,10 @@ struct JackOutput final : AudioOutput { */ std::exception_ptr error; +public: explicit JackOutput(const ConfigBlock &block); +private: /** * Connect the JACK client and performs some basic setup * (e.g. register callbacks). @@ -142,6 +144,7 @@ struct JackOutput final : AudioOutput { */ size_t WriteSamples(const float *src, size_t n_frames); +public: /* virtual methods from class AudioOutput */ void Enable() override;