Wire up Colecovision sound

This commit is contained in:
adelikat 2016-12-11 11:33:33 -06:00
parent b73a500d6b
commit da5795255c
2 changed files with 4 additions and 5 deletions

View File

@ -4,12 +4,9 @@ using BizHawk.Emulation.Cores.Components;
namespace BizHawk.Emulation.Cores.ColecoVision
{
// Sound refactor TODO: Implement ISoundProvider here and sort this mess out
public partial class ColecoVision
{
public SN76489 PSG;
public IAsyncSoundProvider SoundProvider { get { return PSG; } }
//public ISyncSoundProvider SyncSoundProvider { get { return new FakeSyncSound(SoundProvider, 735); } }
private SN76489 PSG;
private FakeSyncSound _fakeSyncSound;
}
}

View File

@ -44,6 +44,8 @@ namespace BizHawk.Emulation.Cores.ColecoVision
VDP = new TMS9918A(Cpu);
(ServiceProvider as BasicServiceProvider).Register<IVideoProvider>(VDP);
PSG = new SN76489();
_fakeSyncSound = new FakeSyncSound(PSG, 735);
(ServiceProvider as BasicServiceProvider).Register<ISoundProvider>(_fakeSyncSound);
// TODO: hack to allow bios-less operation would be nice, no idea if its feasible
BiosRom = CoreComm.CoreFileProvider.GetFirmware("Coleco", "Bios", true, "Coleco BIOS file is required.");