Ejemplo n.º 1
0
            /// <summary>
            ///
            /// </summary>
            /// <param name="parent"></param>
            public GBSoundManager(GB_APU parent) : base(parent)
            {
                this.parentModule = parent;

                //Sound On
                GbApuWriteData(parentModule.UnitNumber, 0x16, 0x80);
                GbApuWriteData(parentModule.UnitNumber, 0x14, 0x77);
            }
Ejemplo n.º 2
0
            /// <summary>
            ///
            /// </summary>
            /// <param name="parentModule"></param>
            /// <param name="noteOnEvent"></param>
            /// <param name="programNumber"></param>
            /// <param name="slot"></param>
            public GbSound(GB_APU parentModule, GBSoundManager manager, TimbreBase timbre, int tindex, TaggedNoteOnEvent noteOnEvent, int slot) : base(parentModule, manager, timbre, tindex, noteOnEvent, slot)
            {
                this.parentModule = parentModule;
                this.timbre       = (GBAPUTimbre)timbre;

                lastSoundType = this.timbre.SoundType;
                if (lastSoundType == SoundType.PSG && this.timbre.PartialReserveSPSG)
                {
                    partialReserveSpsg = 1;
                }
            }