[AudioIO][TCSACR-472] Support up-to 16 channel for recording 82/264582/1
authorHaesu Gwon <haesu.gwon@samsung.com>
Mon, 27 Sep 2021 01:26:06 +0000 (10:26 +0900)
committerHaesu Gwon <haesu.gwon@samsung.com>
Mon, 27 Sep 2021 01:26:06 +0000 (10:26 +0900)
Change-Id: I63902debbea6c10a6182146e6dd1eafadbe527f8

tct-suite-vs/Tizen.AudioIO.Tests/testcase/AudioIO/TSAsyncAudioCapture.cs
tct-suite-vs/Tizen.AudioIO.Tests/testcase/AudioIO/TSAudioCapture.cs

index 48bbaaf..80c1e96 100644 (file)
@@ -110,7 +110,7 @@ namespace Tizen.Multimedia.Tests
                 new AsyncAudioCapture(AudioCaptureBase.MinSampleRate, AudioChannel.Mono - 1, AudioSampleType.U8));
 
             Assert.Throws<ArgumentException>(() =>
-                new AsyncAudioCapture(AudioCaptureBase.MaxSampleRate, AudioChannel.MultiChannel8 + 1, AudioSampleType.S16Le));
+                new AsyncAudioCapture(AudioCaptureBase.MaxSampleRate, AudioChannel.MultiChannel16 + 1, AudioSampleType.S16Le));
         }
 
         [Test]
index 9fb333a..565a5f8 100644 (file)
@@ -154,6 +154,34 @@ namespace Tizen.Multimedia.Tests
         }
 
         [Test]
+        [Category("P1")]
+        [Description("Create AudioCapture object with MultiChannel value and verify")]
+        [Property("SPEC", "Tizen.Multimedia.AudioCapture.AudioCapture C")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "CONSTR")]
+        [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
+        public void AudioCapture_CREATE_MultiChannel()
+        {
+            if (_isMicrophoneAvail == false)
+                return;
+
+            Assert.DoesNotThrow(() => new AudioCapture(44100, AudioChannel.MultiChannel3, AudioSampleType.S24LePacked));
+            Assert.DoesNotThrow(() => new AudioCapture(44100, AudioChannel.MultiChannel4, AudioSampleType.S24LePacked));
+            Assert.DoesNotThrow(() => new AudioCapture(44100, AudioChannel.MultiChannel5, AudioSampleType.S24LePacked));
+            Assert.DoesNotThrow(() => new AudioCapture(44100, AudioChannel.MultiChannel6, AudioSampleType.S24LePacked));
+            Assert.DoesNotThrow(() => new AudioCapture(44100, AudioChannel.MultiChannel7, AudioSampleType.S24LePacked));
+            Assert.DoesNotThrow(() => new AudioCapture(44100, AudioChannel.MultiChannel8, AudioSampleType.S24LePacked));
+            Assert.DoesNotThrow(() => new AudioCapture(44100, AudioChannel.MultiChannel9, AudioSampleType.S24LePacked));
+            Assert.DoesNotThrow(() => new AudioCapture(44100, AudioChannel.MultiChannel10, AudioSampleType.S24LePacked));
+            Assert.DoesNotThrow(() => new AudioCapture(44100, AudioChannel.MultiChannel11, AudioSampleType.S24LePacked));
+            Assert.DoesNotThrow(() => new AudioCapture(44100, AudioChannel.MultiChannel12, AudioSampleType.S24LePacked));
+            Assert.DoesNotThrow(() => new AudioCapture(44100, AudioChannel.MultiChannel13, AudioSampleType.S24LePacked));
+            Assert.DoesNotThrow(() => new AudioCapture(44100, AudioChannel.MultiChannel14, AudioSampleType.S24LePacked));
+            Assert.DoesNotThrow(() => new AudioCapture(44100, AudioChannel.MultiChannel15, AudioSampleType.S24LePacked));
+            Assert.DoesNotThrow(() => new AudioCapture(44100, AudioChannel.MultiChannel16, AudioSampleType.S24LePacked));
+        }
+
+        [Test]
         [Category("P2")]
         [Description("AudioCapture constructor throws ArgumentOutOfRangeException when invalid sample rate is given.")]
         [Property("SPEC", "Tizen.Multimedia.AudioCapture.AudioCapture C")]
@@ -194,7 +222,7 @@ namespace Tizen.Multimedia.Tests
                 new AudioCapture(AudioCaptureBase.MinSampleRate, AudioChannel.Mono - 1, AudioSampleType.U8));
 
             Assert.Throws<ArgumentException>(() =>
-                new AudioCapture(AudioCaptureBase.MaxSampleRate, AudioChannel.MultiChannel8 + 1, AudioSampleType.S16Le));
+                new AudioCapture(AudioCaptureBase.MaxSampleRate, AudioChannel.MultiChannel16 + 1, AudioSampleType.S16Le));
         }
 
         [Test]