mixer/Plugin: pass AudioOutput reference to init()

Passing a void pointer is unsafe.
This commit is contained in:
Max Kellermann
2014-02-06 21:10:12 +01:00
parent b6df4680df
commit 0a0659d737
18 changed files with 81 additions and 143 deletions

View File

@@ -28,19 +28,19 @@ class Error;
extern const struct AudioOutputPlugin pulse_output_plugin;
void
pulse_output_lock(PulseOutput *po);
pulse_output_lock(PulseOutput &po);
void
pulse_output_unlock(PulseOutput *po);
pulse_output_unlock(PulseOutput &po);
void
pulse_output_set_mixer(PulseOutput *po, PulseMixer *pm);
pulse_output_set_mixer(PulseOutput &po, PulseMixer &pm);
void
pulse_output_clear_mixer(PulseOutput *po, PulseMixer *pm);
pulse_output_clear_mixer(PulseOutput &po, PulseMixer &pm);
bool
pulse_output_set_volume(PulseOutput *po,
pulse_output_set_volume(PulseOutput &po,
const pa_cvolume *volume, Error &error);
#endif