output/solaris: convert to class, make attributes private
This commit is contained in:
parent
704a28ca17
commit
cbe59714d4
@ -50,7 +50,9 @@ struct audio_info {
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
struct SolarisOutput {
|
class SolarisOutput {
|
||||||
|
friend struct AudioOutputWrapper<SolarisOutput>;
|
||||||
|
|
||||||
AudioOutput base;
|
AudioOutput base;
|
||||||
|
|
||||||
/* configuration */
|
/* configuration */
|
||||||
@ -62,6 +64,7 @@ struct SolarisOutput {
|
|||||||
:base(solaris_output_plugin, block),
|
:base(solaris_output_plugin, block),
|
||||||
device(block.GetBlockValue("device", "/dev/audio")) {}
|
device(block.GetBlockValue("device", "/dev/audio")) {}
|
||||||
|
|
||||||
|
public:
|
||||||
static SolarisOutput *Create(const ConfigBlock &block) {
|
static SolarisOutput *Create(const ConfigBlock &block) {
|
||||||
return new SolarisOutput(block);
|
return new SolarisOutput(block);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user