示例#1
0
        // only used for deserializing
        public XSID(InternalPlayer 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
            }
        }
示例#2
0
        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;
        }