mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-29 15:26:35 +00:00
Split SetSoundStreamRunning
into StartSoundStream
and StopSoundStream
This commit is contained in:
parent
8cc18164ee
commit
6c5aed38b3
3 changed files with 11 additions and 5 deletions
|
@ -180,7 +180,7 @@ void StartSoundStream(Core::System& system)
|
||||||
if (system.IsSoundStreamRunning())
|
if (system.IsSoundStreamRunning())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
system.SetSoundStreamRunning(true);
|
system.StartSoundStream();
|
||||||
|
|
||||||
if (sound_stream->SetRunning(true))
|
if (sound_stream->SetRunning(true))
|
||||||
return;
|
return;
|
||||||
|
@ -198,7 +198,7 @@ void StopSoundStream(Core::System& system)
|
||||||
if (!system.IsSoundStreamRunning())
|
if (!system.IsSoundStreamRunning())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
system.SetSoundStreamRunning(false);
|
system.StopSoundStream();
|
||||||
|
|
||||||
if (sound_stream->SetRunning(false))
|
if (sound_stream->SetRunning(false))
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -128,9 +128,14 @@ bool System::IsSoundStreamRunning() const
|
||||||
return m_impl->m_sound_stream_running;
|
return m_impl->m_sound_stream_running;
|
||||||
}
|
}
|
||||||
|
|
||||||
void System::SetSoundStreamRunning(bool running)
|
void System::StartSoundStream()
|
||||||
{
|
{
|
||||||
m_impl->m_sound_stream_running = running;
|
m_impl->m_sound_stream_running = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
void System::StopSoundStream()
|
||||||
|
{
|
||||||
|
m_impl->m_sound_stream_running = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool System::IsAudioDumpStarted() const
|
bool System::IsAudioDumpStarted() const
|
||||||
|
|
|
@ -151,7 +151,8 @@ public:
|
||||||
SoundStream* GetSoundStream() const;
|
SoundStream* GetSoundStream() const;
|
||||||
void SetSoundStream(std::unique_ptr<SoundStream> sound_stream);
|
void SetSoundStream(std::unique_ptr<SoundStream> sound_stream);
|
||||||
bool IsSoundStreamRunning() const;
|
bool IsSoundStreamRunning() const;
|
||||||
void SetSoundStreamRunning(bool running);
|
void StartSoundStream();
|
||||||
|
void StopSoundStream();
|
||||||
bool IsAudioDumpStarted() const;
|
bool IsAudioDumpStarted() const;
|
||||||
void SetAudioDumpStarted(bool started);
|
void SetAudioDumpStarted(bool started);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue