Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions libasnd/asndlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,11 @@ static void __dsp_requestcallback(dsptask_t *task)
return;
}

// the DSP takes the new song now: clear the flag here, not only in the look-ahead below (a voice set after the
// look-ahead passed it would otherwise be restarted when it comes back, playing its first block twice)
if(sound_data[snd_chan].flags & VOICE_UPDATE)
sound_data[snd_chan].flags &=~(VOICE_UPDATE | VOICE_VOLUPDATE | VOICE_PAUSE | VOICE_UPDATEADD);

sound_data_dma=sound_data[snd_chan];

DCFlushRange(&sound_data_dma, sizeof(t_sound_data));
Expand Down