output/oss: convert struct to class
This commit is contained in:
parent
15d29da43b
commit
18e32abda9
|
@ -58,7 +58,9 @@
|
||||||
#include "util/Manual.hxx"
|
#include "util/Manual.hxx"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
struct OssOutput {
|
class OssOutput {
|
||||||
|
friend struct AudioOutputWrapper<OssOutput>;
|
||||||
|
|
||||||
AudioOutput base;
|
AudioOutput base;
|
||||||
|
|
||||||
#ifdef AFMT_S24_PACKED
|
#ifdef AFMT_S24_PACKED
|
||||||
|
@ -80,6 +82,7 @@ struct OssOutput {
|
||||||
*/
|
*/
|
||||||
int oss_format;
|
int oss_format;
|
||||||
|
|
||||||
|
public:
|
||||||
OssOutput(const char *_device=nullptr)
|
OssOutput(const char *_device=nullptr)
|
||||||
:base(oss_output_plugin),
|
:base(oss_output_plugin),
|
||||||
fd(-1), device(_device) {}
|
fd(-1), device(_device) {}
|
||||||
|
|
Loading…
Reference in New Issue