working on sweep validation
This commit is contained in:
@ -373,9 +373,9 @@ void audio_tick(){
|
||||
|
||||
}
|
||||
|
||||
if((prev_ticks & (1 << 1)) && !(ticks & (1 << 1))) {
|
||||
if((prev_ticks & (1 << 1)) && !(ticks & (1 << 1)) && ctx.sq1_sweep_enabled) {
|
||||
ctx.sq1_sweep_timer++;
|
||||
if(ctx.sq1_sweep_timer >= ctx.sq1_sweep_pace) {
|
||||
if((ctx.sq1_sweep_timer >= ctx.sq1_sweep_pace && ctx.sq1_sweep_pace > 0) || (ctx.sq1_sweep_timer >= 8 && ctx.sq1_sweep_pace == 0)) {
|
||||
ctx.sq1_sweep_timer = 0;
|
||||
if(ctx.sq1_enable && ctx.sq1_sweep_pace > 0 && ctx.sq1_sweep_enabled){
|
||||
sq1_sweep();
|
||||
|
Reference in New Issue
Block a user