Update() public method

public Update ( AudioSource source, AudioEngineCaptureOptions options ) : void
source AudioSource
options AudioEngineCaptureOptions
return void
コード例 #1
0
ファイル: AudioEngineTests.cs プロジェクト: ermau/Gablarski
        public void InvalidUpdateUserTargets()
        {
            var engine = new AudioEngine();

            Assert.Throws<ArgumentNullException> (() => engine.Update (null, new UserInfo[] {}));
            Assert.Throws<ArgumentNullException> (() => engine.Update (source, (IEnumerable<IUserInfo>)null));
            Assert.Throws<ArgumentException> (() => engine.Update (source, new UserInfo[] { }));
        }
コード例 #2
0
ファイル: AudioEngineTests.cs プロジェクト: ermau/Gablarski
        public void InvalidUpdatePlayback()
        {
            var engine = new AudioEngine();

            Assert.Throws<ArgumentNullException> (() => engine.Update (null, new AudioEnginePlaybackOptions()));
            Assert.Throws<ArgumentNullException> (() => engine.Update (source, (AudioEngineCaptureOptions)null));
            Assert.Throws<ArgumentException> (() => engine.Update (source, new AudioEnginePlaybackOptions()));
        }