aha
This commit is contained in:
1 parent
15ab48343a
commit
c017d27b2a
11 files changed
+1554
-263
No files matched your search
@@ -299,8 +299,8 @@ void AudioEngine::drain_commands() {
|
||||
active_track_ = cmd.track;
|
||||
active_loop_ = cmd.loop;
|
||||
int slot = map_track_slot(cmd.track);
|
||||
opl_synth_.all_notes_off();
|
||||
sf_synth_.all_notes_off();
|
||||
opl_synth_.reset();
|
||||
sf_synth_.reset();
|
||||
custom_music_playing_ = false;
|
||||
custom_music_pos_ = 0.0;
|
||||
if (active_backend_ == MusicBackend::Custom &&
|
||||
@@ -316,8 +316,8 @@ void AudioEngine::drain_commands() {
|
||||
}
|
||||
case CmdType::StopMusic:
|
||||
xmi_player_.stop();
|
||||
opl_synth_.all_notes_off();
|
||||
sf_synth_.all_notes_off();
|
||||
opl_synth_.reset();
|
||||
sf_synth_.reset();
|
||||
custom_music_playing_ = false;
|
||||
break;
|
||||
|
||||
@@ -325,8 +325,8 @@ void AudioEngine::drain_commands() {
|
||||
if (cmd.backend != active_backend_) {
|
||||
bool was_playing = xmi_player_.is_playing() || custom_music_playing_;
|
||||
active_backend_ = cmd.backend;
|
||||
opl_synth_.all_notes_off();
|
||||
sf_synth_.all_notes_off();
|
||||
opl_synth_.reset();
|
||||
sf_synth_.reset();
|
||||
custom_music_playing_ = false;
|
||||
if (was_playing) {
|
||||
int slot = map_track_slot(active_track_);
|
||||
|
||||
Reference in new issue
Block a user