public AVAudioChannelLayout(AudioChannelLayout layout) : this((nint)CreateLayoutPtr(layout))
 {
     Marshal.FreeHGlobal(handleToLayout);
 }
Beispiel #2
0
        public void GetNumberOfChannels()
        {
            var acl = AudioChannelLayout.FromAudioChannelLayoutTag(AudioChannelLayoutTag.MPEG_7_1_B);

            Assert.That(AudioChannelLayout.GetNumberOfChannels(acl), Is.EqualTo(8));
        }
Beispiel #3
0
 public void GetTagsForNumberOfChannels()
 {
     Assert.IsNotNull(AudioChannelLayout.GetTagsForNumberOfChannels(4));
 }
Beispiel #4
0
        public void GetTagForChannelLayout()
        {
            var acl = AudioChannelLayout.FromAudioChannelLayoutTag(AudioChannelLayoutTag.AudioUnit_6_1);

            Assert.That(AudioChannelLayout.GetTagForChannelLayout(acl), Is.EqualTo(AudioChannelLayoutTag.AudioUnit_6_1));
        }
Beispiel #5
0
 public void FromAudioChannelLayoutTag()
 {
     Assert.IsNotNull(AudioChannelLayout.FromAudioChannelLayoutTag(AudioChannelLayoutTag.AudioUnit_6_1));
 }
Beispiel #6
0
        public void FromAudioChannelBitmap()
        {
            var bitmap = AudioChannelLayoutTag.AudioUnit_7_1_Front.ToAudioChannel();

            Assert.IsNotNull(AudioChannelLayout.FromAudioChannelBitmap(bitmap.Value));
        }
Beispiel #7
0
        public void Validate()
        {
            var acl = AudioChannelLayout.FromAudioChannelLayoutTag(AudioChannelLayoutTag.AudioUnit_6_1);

            Assert.AreEqual(AudioFormatError.None, AudioChannelLayout.Validate(acl));
        }
Beispiel #8
0
        public AVAudioChannelLayout(AudioChannelLayout layout)
#if NET
            : this(CreateLayoutPtr(layout, out var handleToLayout))
#else
            : this((nint)CreateLayoutPtr(layout, out var handleToLayout))