mixer/Plugin: pass AudioOutput reference to init()
Passing a void pointer is unsafe.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user