[AudioManager][Non-ACR] Add condition to check if an output device exists 82/246782/2
authorSangchul Lee <sc11.lee@samsung.com>
Wed, 4 Nov 2020 06:34:23 +0000 (15:34 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Wed, 4 Nov 2020 08:21:54 +0000 (17:21 +0900)
IsRunning_GET_RUNNING_STATE() is revised.

Change-Id: I872e67206c00f8b59d77fab494efcb0ec1a2fc02
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
tct-suite-vs/Tizen.Multimedia.Tests/testcase/AudioManager/TSAudioDevice.cs [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index c46cf2f..d7ddc7a
@@ -119,6 +119,9 @@ namespace Tizen.Multimedia.Tests
             var audioStreamPolicy = new AudioStreamPolicy(AudioStreamType.Media);
             var cts = new CancellationTokenSource();
 
+            if (AudioManager.GetConnectedDevices().Count(d => d.IoDirection == AudioDeviceIoDirection.Output) == 0)
+                return;
+
             try
             {
                 // We need to play anything in BACKGROUND for checking whether IsRunning returns true or not.