NES APU - a fix for the triangle channel, Double Dragon 2 sounds much better

This commit is contained in:
andres.delikat 2011-09-03 15:50:46 +00:00
parent 8556906f2c
commit 67433a5f17
1 changed files with 3 additions and 3 deletions

View File

@ -474,7 +474,7 @@ namespace BizHawk.Emulation.Consoles.Nintendo
public void clock_length_and_sweep()
{
//env_loopdoubles as "halt length counter"
if (len_cnt > 0)
if (len_cnt > 1)
len_cnt--;
}
@ -494,10 +494,10 @@ namespace BizHawk.Emulation.Consoles.Nintendo
//if (halt_flag == 1 && control_flag == 0)
//{
// seq = 16;
// Console.WriteLine("declicked triangle");
// Console.WriteLine("declicked triangle");
//}
////declick on end of sound
//declick on end of sound
//bool en = len_cnt != 0 && linear_counter != 0;
//if (!en)
// if (sample < 0) sample++; else if (sample > 0) sample--;