Commit d3f35dab authored by Max Kellermann's avatar Max Kellermann

output/ao: convert to class, make attributes private

parent 487e2618
...@@ -37,7 +37,9 @@ static ao_sample_format OUR_AO_FORMAT_INITIALIZER; ...@@ -37,7 +37,9 @@ static ao_sample_format OUR_AO_FORMAT_INITIALIZER;
static unsigned ao_output_ref; static unsigned ao_output_ref;
struct AoOutput { class AoOutput {
friend struct AudioOutputWrapper<AoOutput>;
AudioOutput base; AudioOutput base;
const size_t write_size; const size_t write_size;
...@@ -48,6 +50,7 @@ struct AoOutput { ...@@ -48,6 +50,7 @@ struct AoOutput {
AoOutput(const ConfigBlock &block); AoOutput(const ConfigBlock &block);
~AoOutput(); ~AoOutput();
public:
static AoOutput *Create(const ConfigBlock &block) { static AoOutput *Create(const ConfigBlock &block) {
return new AoOutput(block); return new AoOutput(block);
} }
......
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