Add live-preview option for editing scene animation

#519
This commit is contained in:
Wojtek Figat
2021-09-22 17:09:36 +02:00
parent 2a5a9e9581
commit 8e6c7a6194
6 changed files with 154 additions and 37 deletions

View File

@@ -134,17 +134,13 @@ void AudioSource::Play()
void AudioSource::Pause()
{
if (_state != States::Playing)
{
LOG(Warning, "Cannot pause audio source that is not playing ({0})", GetNamePath());
return;
}
_state = States::Paused;
if (_isActuallyPlayingSth)
{
AudioBackend::Source::Pause(this);
_isActuallyPlayingSth = false;
}
}