Change-Id: Ibac4899819a1cd9c66c53a32d074f720a44d9f6b
Signed-off-by: coderhyme <jhyo.kim@samsung.com>
private static Capabilities LoadCapabilities()
{
- Native.Create(out var handle).ThrowIfError("Failed to load the capabilities"); ;
+ var ret = Native.Create(out var handle);
+
+ if (ret == RecorderErrorCode.NotSupported)
+ {
+ throw new NotSupportedException("Audio recording is not supported.");
+ }
+
+ ret.ThrowIfError("Failed to load the capabilities");
+
using (handle)
{
return new Capabilities(handle);