diff --git a/BizHawk.Emulation.Cores/Consoles/Intellivision/Intellivision.IEmulator.cs b/BizHawk.Emulation.Cores/Consoles/Intellivision/Intellivision.IEmulator.cs index 1705beefd5..5edc4d840d 100644 --- a/BizHawk.Emulation.Cores/Consoles/Intellivision/Intellivision.IEmulator.cs +++ b/BizHawk.Emulation.Cores/Consoles/Intellivision/Intellivision.IEmulator.cs @@ -93,7 +93,7 @@ namespace BizHawk.Emulation.Cores.Intellivision while (_cpu.GetPendingCycles() > 0) { int cycles = _cpu.Execute(); - //_psg.generate_sound(cycles); + _psg.generate_sound(cycles); Connect(); } @@ -104,7 +104,7 @@ namespace BizHawk.Emulation.Cores.Intellivision while (_cpu.GetPendingCycles() > 0) { int cycles = _cpu.Execute(); - //_psg.generate_sound(cycles); + _psg.generate_sound(cycles); Connect(); } _stic.in_vb_2 = false; diff --git a/BizHawk.Emulation.Cores/Consoles/Intellivision/PSG.cs b/BizHawk.Emulation.Cores/Consoles/Intellivision/PSG.cs index 0716bd0141..eefcd0d8c9 100644 --- a/BizHawk.Emulation.Cores/Consoles/Intellivision/PSG.cs +++ b/BizHawk.Emulation.Cores/Consoles/Intellivision/PSG.cs @@ -23,7 +23,7 @@ namespace BizHawk.Emulation.Cores.Intellivision sample_count = 0; - for (int i = 0; i < 3733; i++) + for (int i = 0; i < 4000; i++) { audio_samples[i] = 0; } @@ -54,17 +54,18 @@ namespace BizHawk.Emulation.Cores.Intellivision public void GetSamplesSync(out short[] samples, out int nsamp) { - short[] ret = new short[735 * 2]; + short[] ret = new short[932 * 2]; GetSamples(ret); samples = ret; - nsamp = 735; + nsamp = 932; } public void GetSamples(short[] samples) { for (int i = 0; i < samples.Length / 2; i++) { - samples[i * 2] = (short)(audio_samples[(int)Math.Floor(3.7904 * i)]); + //samples[i * 2] = (short)(audio_samples[(int)Math.Floor(3.7904 * i)]); + samples[i * 2] = (short)(audio_samples[(4 * i)]); samples[(i * 2) + 1] = samples[i * 2]; } }