Exemplo n.º 1
0
        public static ChannelMap MonoMapping()
        {
            ChannelMap mapping = new ChannelMap();

            mapping.Init();
            pa_channel_map_init_mono(ref mapping);
            return(mapping);
        }
Exemplo n.º 2
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);
        }
Exemplo n.º 3
0
        public void SinkChannelMapPropertyReturnsCopy()
        {
            Context c = new Context();

            c.ConnectAndWait();

            Sink addedSink = helper.AddSink(c, "ChannelMapTestSink");

            ChannelMap sinkMap = addedSink.ChannelMap;

            sinkMap.channels++;
            Assert.AreNotEqual(addedSink.ChannelMap.channels, sinkMap.channels);
        }
Exemplo n.º 4
0
 private static extern void pa_channel_map_init_mono(ref ChannelMap map);
Exemplo n.º 5
0
        public void MonoMapHasOneChannel()
        {
            ChannelMap map = ChannelMap.MonoMapping();

            Assert.AreEqual(1, map.channels);
        }
Exemplo n.º 6
0
        public void StereoMapHasTwoChannels()
        {
            ChannelMap map = ChannelMap.StereoMapping();

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