working on sweep validation
This commit is contained in:
parent
d576bbca55
commit
65e4dbadb5
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@ -7,6 +7,7 @@
|
|||||||
"ppu.h": "c",
|
"ppu.h": "c",
|
||||||
"profileapi.h": "c",
|
"profileapi.h": "c",
|
||||||
"type_traits": "c",
|
"type_traits": "c",
|
||||||
"xtr1common": "c"
|
"xtr1common": "c",
|
||||||
|
"chrono": "c"
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -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++;
|
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;
|
ctx.sq1_sweep_timer = 0;
|
||||||
if(ctx.sq1_enable && ctx.sq1_sweep_pace > 0 && ctx.sq1_sweep_enabled){
|
if(ctx.sq1_enable && ctx.sq1_sweep_pace > 0 && ctx.sq1_sweep_enabled){
|
||||||
sq1_sweep();
|
sq1_sweep();
|
||||||
|
Loading…
Reference in New Issue
Block a user