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