예제 #1
0
        public void DefaultChannelFormatIsStereo()
        {
            Context c = new Context();

            c.ConnectAndWait();
            ServerInfo info = new ServerInfo(new NativeServerInfo());

            using (Operation o = c.GetServerInfo((ServerInfo i) => info = i)) {
                o.Wait();
            }
            Assert.AreEqual(ChannelMap.StereoMapping().channels, info.DefaultChannelMap.channels);
        }
예제 #2
0
        public void StereoMapHasTwoChannels()
        {
            ChannelMap map = ChannelMap.StereoMapping();

            Assert.AreEqual(2, map.channels);
        }