Intellivision wire up sound system

This commit is contained in:
alyosha-tas 2016-12-07 20:49:47 -05:00 committed by GitHub
parent 4d1629e271
commit 89940b85af
3 changed files with 19 additions and 5 deletions

View File

@ -7,16 +7,16 @@ namespace BizHawk.Emulation.Cores.Intellivision
{
public IEmulatorServiceProvider ServiceProvider { get; private set; }
[FeatureNotImplemented]
private DCFilter _dcfilter;
public ISoundProvider SoundProvider
{
get { return NullSound.SilenceProvider; }
get { return _dcfilter; }
}
[FeatureNotImplemented]
public ISyncSoundProvider SyncSoundProvider
{
get { return new FakeSyncSound(NullSound.SilenceProvider, 735); }
get { return new FakeSyncSound(_dcfilter, 735); }
}
public bool StartAsyncSound()

View File

@ -63,6 +63,8 @@ namespace BizHawk.Emulation.Cores.Intellivision
(ServiceProvider as BasicServiceProvider).Register<ITraceable>(Tracer);
SetupMemoryDomains();
_dcfilter = DCFilter.AsISoundProvider(_psg, 256); // not sure how the 256 will change for intellivision I just copied it from Atari for now
}
public IntellivisionControllerDeck ControllerDeck { get; private set; }

View File

@ -1,13 +1,25 @@
using BizHawk.Common.NumberExtensions;
using System;
using BizHawk.Common;
using BizHawk.Emulation.Common;
namespace BizHawk.Emulation.Cores.Intellivision
{
public sealed class PSG
public sealed class PSG : ISoundProvider
{
public ushort[] Register = new ushort[16];
public int MaxVolume { get; set; }
public void DiscardSamples()
{
}
public void GetSamples(short[] samples)
{
}
public int TotalExecutedCycles;
public int PendingCycles;