Skip to content

Commit e009756

Browse files
authored
Merge pull request #260 from AgonConsole8/audio-silence-samples
fix for stopping samples with envelopes
2 parents f296e68 + 2bb6e8f commit e009756

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

video/audio_channel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ uint8_t AudioChannel::setVolume(uint8_t volume) {
273273
break;
274274
case AudioState::PlayLoop:
275275
// we are looping, so an envelope may be active
276-
if (volume == 0 && this->_waveformType != AUDIO_WAVE_SAMPLE) {
276+
if (volume == 0) {
277277
// silence whilst looping always stops playback - curtail duration
278278
this->_duration = millis() - this->_startTime;
279279
// if there's a volume envelope, just allow release to happen, otherwise...

0 commit comments

Comments
 (0)