Esempio n. 1
0
 public void FrameAdvance(bool render, bool rendersound)
 {
     if (render == false)
     {
         return;
     }
     if (!CoreComm.DispSnowyNullEmulator())
     {
         if (frameBufferClear)
         {
             return;
         }
         frameBufferClear = true;
         Array.Clear(frameBuffer, 0, 256 * 192);
         return;
     }
     frameBufferClear = false;
     if (xmas)
     {
         for (int i = 0; i < 256 * 192; i++)
         {
             byte b = (byte)rand.Next();
             frameBuffer[i] = Colors.ARGB(b, (byte)(255 - b), 0, 255);
         }
     }
     else
     {
         for (int i = 0; i < 256 * 192; i++)
         {
             frameBuffer[i] = Colors.Luminosity((byte)rand.Next());
         }
     }
 }
Esempio n. 2
0
 public void GetSamples(short[] samples)
 {
     if (!CoreComm.DispSnowyNullEmulator())
     {
         return;
     }
     if (xmas)
     {
         pleg.Generate(samples);
     }
 }
Esempio n. 3
0
 public void GetSamples(out short[] samples, out int nsamp)
 {
     nsamp   = 735;
     samples = sampbuff;
     if (!CoreComm.DispSnowyNullEmulator())
     {
         return;
     }
     if (xmas)
     {
         pleg.Generate(samples);
     }
 }