示例#1
0
 public SoundOut(FMOD.System newsys)
 {
     system          = newsys;
     thisLock        = new Object();
     readySound      = new SoundProvider(this.system);
     soundDataBuffer = new CircularBuffer(frequency * soundDataBufferTime * channelCount);
 }
示例#2
0
 public void StopMe()
 {
     if (adsKill != null)
     {
         adsKill.Abort();
         adsKill = null;
     }
     streamSound.Dispose();
     streamSound = null;
     //   this.HandleStop(this, EventArgs.Empty);
 }
示例#3
0
 public SoundIn(FMOD.System newsys, string connectionUrl)
 {
     newsys.CheckNull("SoundIn newsys");
     system           = newsys;
     ads              = new AdKillingThread();
     ads.ThreadReady += this.HandleThreadReady;
     SoundDataBuffer  = new CircularBuffer(pumpedBuffer);
     streamSound      = new SoundProvider(this.system, connectionUrl);
     this.SoundSource = streamSound;
     streamSound.Sounds.PlaySound();
 }