[AudioManager] Changed handle type to marshal from unmanaged (#1027)
authorhsgwon <haesu.gwon@samsung.com>
Fri, 20 Sep 2019 08:12:03 +0000 (17:12 +0900)
committerGitHub <noreply@github.com>
Fri, 20 Sep 2019 08:12:03 +0000 (17:12 +0900)
src/Tizen.Multimedia/AudioManager/AudioDucking.cs
src/Tizen.Multimedia/Interop/Interop.Ducking.cs

index c980084a5f47909e9a43def221970a236361f181..5c5c5dd9a5cd6974914554c5a3b8c6053d0f30e8 100644 (file)
@@ -1,4 +1,4 @@
-/*
+/*
  * Copyright (c) 2019 Samsung Electronics Co., Ltd All Rights Reserved
  *
  * Licensed under the Apache License, Version 2.0 (the License);
@@ -41,10 +41,10 @@ namespace Tizen.Multimedia
         {
             ValidationUtil.ValidateEnum(typeof(AudioStreamType), targetType, nameof(targetType));
 
-            _duckingStateChangedCallback = (AudioDuckingHandle ducking, bool isDucked, IntPtr _) =>
+            _duckingStateChangedCallback = (IntPtr ducking, bool isDucked, IntPtr _) =>
             {
                 DuckingStateChanged?.Invoke(this,
-                    new AudioDuckingStateChangedEventArgs(IsDucked));
+                    new AudioDuckingStateChangedEventArgs(isDucked));
             };
 
             Interop.AudioDucking.Create(targetType, _duckingStateChangedCallback,
index 7cdc824857c6754acb8b169f1a66cb599abe425c..078aff109c131f5f318a2f8a0dacce0d0b319d05 100644 (file)
@@ -1,4 +1,4 @@
-/*
+/*
  * Copyright (c) 2019 Samsung Electronics Co., Ltd All Rights Reserved
  *
  * Licensed under the Apache License, Version 2.0 (the License);
@@ -24,7 +24,7 @@ namespace Tizen.Multimedia
         internal static partial class AudioDucking
         {
             [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
-            internal delegate void DuckingStateChangedCallback(AudioDuckingHandle ducking, bool isDucked, IntPtr userData);
+            internal delegate void DuckingStateChangedCallback(IntPtr ducking, bool isDucked, IntPtr userData);
 
             [DllImport(Libraries.SoundManager, EntryPoint = "sound_manager_create_stream_ducking")]
             internal static extern AudioManagerError Create(AudioStreamType targetType,