-/*
+/*
* Copyright (c) 2019 Samsung Electronics Co., Ltd All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the License);
{
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,
-/*
+/*
* Copyright (c) 2019 Samsung Electronics Co., Ltd All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the License);
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,