}
[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")]
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]