[AudioIO] Fixed WavPlayer to throw correct exception when the file format is wrong.
authorcoderhyme <jhyo.kim@samsung.com>
Mon, 24 Jul 2017 03:52:55 +0000 (12:52 +0900)
committercoderhyme <jhyo.kim@samsung.com>
Mon, 24 Jul 2017 03:52:55 +0000 (12:52 +0900)
Change-Id: I3d2863ff37e658043ae8baf98354760c6fbfc22d
Signed-off-by: coderhyme <jhyo.kim@samsung.com>
src/Tizen.Multimedia.AudioIO/Tizen.Multimedia.AudioIO.csproj
src/Tizen.Multimedia.AudioIO/WavPlayer/WavPlayerError.cs

index 06ff2e6..9d08b27 100644 (file)
@@ -3,7 +3,7 @@
   <Import Project="../build/build.props" />
 
   <PropertyGroup>
-    <Version>1.0.2</Version>
+    <Version>1.0.3</Version>
     <Description>Provides the Multimedia AudioIO API for Tizen .NET</Description>
   </PropertyGroup>
 
index cde5fd3..4570b22 100644 (file)
@@ -44,6 +44,7 @@ namespace Tizen.Multimedia
                     throw new ArgumentException(message);
 
                 case WavPlayerError.FormatNotSupported:
+                    throw new FileFormatException(message);
 
                 case WavPlayerError.NotSupportedType:
                     throw new NotSupportedException(message);