output/Control: move two AudioOutput methods to Finish.cxx
This commit is contained in:
@@ -341,13 +341,6 @@ AudioOutputControl::StopThread() noexcept
|
|||||||
thread.Join();
|
thread.Join();
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
AudioOutput::BeginDestroy() noexcept
|
|
||||||
{
|
|
||||||
if (mixer != nullptr)
|
|
||||||
mixer_auto_close(mixer);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
AudioOutputControl::BeginDestroy() noexcept
|
AudioOutputControl::BeginDestroy() noexcept
|
||||||
{
|
{
|
||||||
@@ -359,12 +352,6 @@ AudioOutputControl::BeginDestroy() noexcept
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
AudioOutput::FinishDestroy() noexcept
|
|
||||||
{
|
|
||||||
audio_output_free(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
AudioOutputControl::FinishDestroy() noexcept
|
AudioOutputControl::FinishDestroy() noexcept
|
||||||
{
|
{
|
||||||
|
@@ -40,3 +40,16 @@ audio_output_free(AudioOutput *ao) noexcept
|
|||||||
{
|
{
|
||||||
ao_plugin_finish(ao);
|
ao_plugin_finish(ao);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
AudioOutput::BeginDestroy() noexcept
|
||||||
|
{
|
||||||
|
if (mixer != nullptr)
|
||||||
|
mixer_auto_close(mixer);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
AudioOutput::FinishDestroy() noexcept
|
||||||
|
{
|
||||||
|
audio_output_free(this);
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user