Skip to content

Commit

Permalink
Merge commit 'refs/pull/26/head' of github.com:Artefact2/libxm
Browse files Browse the repository at this point in the history
  • Loading branch information
Artefact2 committed Apr 20, 2021
2 parents a73c532 + 21144fc commit 9e36212
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/play.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,13 @@ static float xm_waveform(xm_waveform_type_t waveform, uint8_t step) {
}

static void xm_autovibrato(xm_context_t* ctx, xm_channel_context_t* ch) {
if(ch->instrument == NULL || ch->instrument->vibrato_depth == 0) return;
if(ch->instrument == NULL || ch->instrument->vibrato_depth == 0){
if (ch->autovibrato_note_offset){
ch->autovibrato_note_offset = 0.f;
xm_update_frequency(ctx, ch);
}
return;
}
xm_instrument_t* instr = ch->instrument;
float sweep = 1.f;

Expand Down
Binary file added tests/autovibrato-turnoff.xm
Binary file not shown.

0 comments on commit 9e36212

Please sign in to comment.