output/ao: convert to class, make attributes private
This commit is contained in:
parent
487e2618cd
commit
d3f35dab1e
@ -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 {
|
|||||||
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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user