public void Test002() { try { Bass.Init(Bass.NoSoundDevice, 44100); BassSox.Init(); BassSoxAsio.Init(); var channel = Bass.CreateStream(44100, 2, BassFlags.Decode, StreamProcedureType.Dummy); var resampler = BassSox.StreamCreate(48000, BassFlags.Decode, channel); Assert.IsTrue(BassSoxAsio.StreamSet(resampler)); var retrieved = default(int); Assert.IsTrue(BassSoxAsio.StreamGet(out retrieved)); Assert.AreEqual(resampler, retrieved); Assert.IsTrue(BassSox.StreamFree(resampler)); Assert.IsTrue(Bass.StreamFree(channel)); } finally { BassSoxAsio.Free(); BassSox.Free(); Bass.Free(); } }
public void Test003() { try { Bass.Init(Bass.NoSoundDevice, 44100); BassSox.Init(); BassSoxAsio.Init(); var channel = Bass.CreateStream(44100, 2, BassFlags.Decode, StreamProcedureType.Dummy); Assert.IsFalse(BassSoxAsio.StreamSet(channel)); var retrieved = default(int); Assert.IsFalse(BassSoxAsio.StreamGet(out retrieved)); Assert.IsTrue(Bass.StreamFree(channel)); } finally { BassSoxAsio.Free(); BassSox.Free(); Bass.Free(); } }