Skip to content

Commit 6e8d38f

Browse files
author
adelikat
committed
NES - disable vrc6 sound for now
1 parent 886ef59 commit 6e8d38f

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

BizHawk.Emulation/Sound/VRC6.cs

+10-10
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ public void DiscardSamples() { }
1111
public int MaxVolume { get; set; }
1212
public void GetSamples(short[] samples)
1313
{
14-
for (int i = 0; i < samples.Length; )
15-
{
16-
short val = 0;
17-
val = Pulse1.RenderSample();
18-
val *= Pulse2.RenderSample();
19-
val *= Sawtooth.RenderSample();
20-
val = (short)((val * MaxVolume) / short.MaxValue);
14+
//for (int i = 0; i < samples.Length; )
15+
//{
16+
// short val = 0;
17+
// val = Pulse1.RenderSample();
18+
// val += Pulse2.RenderSample();
19+
// val += Sawtooth.RenderSample();
20+
// val = (short)((val * MaxVolume) / short.MaxValue);
2121

22-
samples[i++] = val;
23-
samples[i++] = val;
24-
}
22+
// samples[i++] = val;
23+
// samples[i++] = val;
24+
//}
2525
}
2626

2727
public VRC6()

0 commit comments

Comments
 (0)