public XSID(InternalPlayer player, SIDEmu sid) : base() { xsidEvent = new xSIDEvent(this); ch4 = new Channel("CH4", player.m_scheduler, this); ch5 = new Channel("CH5", player.m_scheduler, this); muted = (false); suppressed = (false); wasRunning = (false); sidSamples(true); m_player = player; m_sid = sid; m_gain = 100; }
// deserializing protected override void LoadFromReader(EventScheduler context, BinaryReader reader) { xsidEvent_id = reader.ReadInt32(); Channel.id = reader.ReadInt32(); ch4 = new Channel(context, this, reader, events); ch5 = new Channel(context, this, reader, events); muted = reader.ReadBoolean(); suppressed = reader.ReadBoolean(); sidData0x18 = reader.ReadInt16(); _sidSamples = reader.ReadBoolean(); sampleOffset = reader.ReadInt16(); wasRunning = reader.ReadBoolean(); m_gain = reader.ReadInt64(); m_sid = new ReSID(context, reader); }
public void emulation(SIDEmu sid) { m_sid = sid; }