output/alsa: convert to class, make attributes private

This commit is contained in:
Max Kellermann 2017-01-24 22:20:09 +01:00
parent f68dd1bffb
commit 6b968beede

View File

@ -50,7 +50,9 @@ static constexpr unsigned MPD_ALSA_BUFFER_TIME_US = 500000;
static constexpr unsigned MPD_ALSA_RETRY_NR = 5;
struct AlsaOutput {
class AlsaOutput {
friend struct AudioOutputWrapper<AlsaOutput>;
AudioOutput base;
Manual<PcmExport> pcm_export;
@ -121,6 +123,7 @@ struct AlsaOutput {
*/
uint8_t *silence;
public:
AlsaOutput(const ConfigBlock &block);
~AlsaOutput() {