[Multimedia][Non-ACR] Change background music method 79/220779/2
authorHaesu Gwon <haesu.gwon@samsung.com>
Mon, 23 Dec 2019 07:09:10 +0000 (16:09 +0900)
committerHaesu Gwon <haesu.gwon@samsung.com>
Mon, 23 Dec 2019 07:10:01 +0000 (16:10 +0900)
Change-Id: I9bfd65a51daf87d1eb84499807d50afbedd2de25

tct-suite-vs/Tizen.Multimedia.Tests/res/test.wav [new file with mode: 0644]
tct-suite-vs/Tizen.Multimedia.Tests/testcase/AudioManager/TSAudioDevice.cs

diff --git a/tct-suite-vs/Tizen.Multimedia.Tests/res/test.wav b/tct-suite-vs/Tizen.Multimedia.Tests/res/test.wav
new file mode 100644 (file)
index 0000000..de73a42
Binary files /dev/null and b/tct-suite-vs/Tizen.Multimedia.Tests/res/test.wav differ
index 9afe0ba9e61dc6970c0c6275a4b4ce3779ee0b1d..c46cf2f6b320a873522a5051a90f8be2d1dba463 100644 (file)
@@ -12,6 +12,7 @@ namespace Tizen.Multimedia.Tests
     {
         private AudioDevice _device;
         private AudioDevice _usb_output_device = null;
+        private const string _filePath = "/opt/usr/home/owner/share/res/test.wav";
 
         [SetUp]
         public void SetUp()
@@ -121,7 +122,7 @@ namespace Tizen.Multimedia.Tests
             try
             {
                 // We need to play anything in BACKGROUND for checking whether IsRunning returns true or not.
-                Task.Run(() => TonePlayer.StartAsync(ToneType.Default, audioStreamPolicy, 1000, cts.Token));
+                WavPlayer.StartAsync(_filePath, audioStreamPolicy, cts.Token);
 
                 // Wait until tone is played.
                 await Task.Delay(300);