output/Thread: move Close() call out of Disable()
This commit is contained in:
@@ -77,9 +77,6 @@ AudioOutput::Enable()
|
|||||||
inline void
|
inline void
|
||||||
AudioOutput::Disable() noexcept
|
AudioOutput::Disable() noexcept
|
||||||
{
|
{
|
||||||
if (open)
|
|
||||||
Close(false);
|
|
||||||
|
|
||||||
if (really_enabled) {
|
if (really_enabled) {
|
||||||
really_enabled = false;
|
really_enabled = false;
|
||||||
|
|
||||||
@@ -206,6 +203,9 @@ AudioOutput::OpenOutputAndConvert(AudioFormat desired_audio_format)
|
|||||||
inline void
|
inline void
|
||||||
AudioOutputControl::InternalDisable() noexcept
|
AudioOutputControl::InternalDisable() noexcept
|
||||||
{
|
{
|
||||||
|
if (output->open)
|
||||||
|
output->Close(false);
|
||||||
|
|
||||||
output->Disable();
|
output->Disable();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user