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

@@ -93,9 +93,9 @@ RoarOutput::GetVolume() const
}
int
roar_output_get_volume(RoarOutput *roar)
roar_output_get_volume(RoarOutput &roar)
{
return roar->GetVolume();
return roar.GetVolume();
}
bool
@@ -115,9 +115,9 @@ RoarOutput::SetVolume(unsigned volume)
}
bool
roar_output_set_volume(RoarOutput *roar, unsigned volume)
roar_output_set_volume(RoarOutput &roar, unsigned volume)
{
return roar->SetVolume(volume);
return roar.SetVolume(volume);
}
inline void