Example #1
0
File: XSID.cs Project: m4mm0n/HGE
        // only used for deserializing
        public XSID(sidPlayer player, BinaryReader reader, EventList events)
            : base()
        {
            this.events = events;

            this.m_player = player;

            LoadFromReader(player.m_scheduler, reader);

            if (xsidEvent_id == -1)
            {
                xsidEvent = null;
            }
            else
            {
                xsidEvent = events.GetEventById(xsidEvent_id) as xSIDEvent;

#if DEBUG
                if (xsidEvent == null)
                {
                    throw new Exception("XSID: xSIDEvent not found");
                }
#endif
            }
        }
Example #2
0
File: XSID.cs Project: m4mm0n/HGE
        public XSID(sidPlayer 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;
        }