42 lines
824 B
C#
42 lines
824 B
C#
![]() |
using System;
|
|||
|
using BizHawk.Emulation.Common;
|
|||
|
|
|||
|
namespace BizHawk.Emulation.Cores.Computers.AppleII
|
|||
|
{
|
|||
|
public partial class AppleII : ISoundProvider
|
|||
|
{
|
|||
|
public bool CanProvideAsync
|
|||
|
{
|
|||
|
get { return false; }
|
|||
|
}
|
|||
|
|
|||
|
public void GetSamplesSync(out short[] samples, out int nsamp)
|
|||
|
{
|
|||
|
_machine.Speaker.AudioService.GetSamples(out samples, out nsamp);
|
|||
|
}
|
|||
|
|
|||
|
public void DiscardSamples()
|
|||
|
{
|
|||
|
_machine.Speaker.AudioService.Clear();
|
|||
|
}
|
|||
|
|
|||
|
public SyncSoundMode SyncMode
|
|||
|
{
|
|||
|
get { return SyncSoundMode.Sync; }
|
|||
|
}
|
|||
|
|
|||
|
public void SetSyncMode(SyncSoundMode mode)
|
|||
|
{
|
|||
|
if (mode == SyncSoundMode.Async)
|
|||
|
{
|
|||
|
throw new NotSupportedException("Async mode is not supported.");
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
public void GetSamplesAsync(short[] samples)
|
|||
|
{
|
|||
|
throw new InvalidOperationException("Async mode is not supported.");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|