Example #1
0
 public NoiseChannel(GameBoySpu spu)
 {
     Spu             = spu ?? throw new ArgumentNullException(nameof(spu));
     ChannelVolume   = 1;
     _volumeEnvelope = new VolumeEnvelope(this);
     _lfsr           = new LfsRegister(this);
 }
Example #2
0
 public NoiseChannel(GameBoySpu spu)
 {
     if (spu == null)
     {
         throw new ArgumentNullException(nameof(spu));
     }
     _spu = spu;
 }
Example #3
0
 public WaveSoundChannel(GameBoySpu spu)
 {
     if (spu == null)
     {
         throw new ArgumentNullException(nameof(spu));
     }
     _spu          = spu;
     ChannelVolume = 1;
 }
Example #4
0
 public SquareChannel(GameBoySpu spu)
 {
     Spu             = spu ?? throw new ArgumentNullException(nameof(spu));
     ChannelVolume   = 1;
     _volumeEnvelope = new VolumeEnvelope(this);
 }
Example #5
0
 public SquareSweepChannel(GameBoySpu spu)
     : base(spu)
 {
     _spu = spu;
 }
Example #6
0
 public WaveSoundChannel(GameBoySpu spu)
 {
     Spu           = spu ?? throw new ArgumentNullException(nameof(spu));
     ChannelVolume = 1;
 }