Commit 9d24f68f authored by Max Kellermann's avatar Max Kellermann

output/jack: convert to class, make attributes/methods private

parent 44652fdb
...@@ -43,7 +43,7 @@ static constexpr unsigned MAX_PORTS = 16; ...@@ -43,7 +43,7 @@ static constexpr unsigned MAX_PORTS = 16;
static constexpr size_t jack_sample_size = sizeof(jack_default_audio_sample_t); 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(). * libjack options passed to jack_client_open().
*/ */
...@@ -89,8 +89,10 @@ struct JackOutput final : AudioOutput { ...@@ -89,8 +89,10 @@ struct JackOutput final : AudioOutput {
*/ */
std::exception_ptr error; std::exception_ptr error;
public:
explicit JackOutput(const ConfigBlock &block); explicit JackOutput(const ConfigBlock &block);
private:
/** /**
* Connect the JACK client and performs some basic setup * Connect the JACK client and performs some basic setup
* (e.g. register callbacks). * (e.g. register callbacks).
...@@ -142,6 +144,7 @@ struct JackOutput final : AudioOutput { ...@@ -142,6 +144,7 @@ struct JackOutput final : AudioOutput {
*/ */
size_t WriteSamples(const float *src, size_t n_frames); size_t WriteSamples(const float *src, size_t n_frames);
public:
/* virtual methods from class AudioOutput */ /* virtual methods from class AudioOutput */
void Enable() override; void Enable() override;
......
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