public SoundOut(FMOD.System newsys) { system = newsys; thisLock = new Object(); readySound = new SoundProvider(this.system); soundDataBuffer = new CircularBuffer(frequency * soundDataBufferTime * channelCount); }
public void StopMe() { if (adsKill != null) { adsKill.Abort(); adsKill = null; } streamSound.Dispose(); streamSound = null; // this.HandleStop(this, EventArgs.Empty); }
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(); }