Wire up Colecovision sound
This commit is contained in:
parent
b73a500d6b
commit
da5795255c
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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.");
|
||||
|
|
Loading…
Reference in New Issue