Merge "[Calendar] fix Validator issues"
[platform/core/csapi/tizenfx.git] / src / Tizen.Multimedia.MediaPlayer / Interop / Interop.Player.cs
index d49ec44..494b084 100644 (file)
@@ -1,3 +1,19 @@
+/*
+ * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 using System;
 using System.Runtime.InteropServices;
 using Tizen;
@@ -44,7 +60,6 @@ internal static partial class Interop
         [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
         internal delegate void SeekCompletedCallback(IntPtr userData);
 
-
         [DllImport(Libraries.Player, EntryPoint = "player_create")]
         internal static extern PlayerErrorCode Create(out PlayerHandle player);
 
@@ -61,7 +76,7 @@ internal static partial class Interop
         internal static extern PlayerErrorCode SetUri(IntPtr player, string uri);
 
         [DllImport(Libraries.Player, EntryPoint = "player_set_display")]
-        internal static extern PlayerErrorCode SetDisplay(IntPtr player, DisplayType type, IntPtr display);
+        internal static extern PlayerErrorCode SetDisplay(IntPtr player, PlayerDisplayType type, IntPtr display);
 
         [DllImport(Libraries.Player, EntryPoint = "player_start")]
         internal static extern PlayerErrorCode Start(IntPtr player);
@@ -85,7 +100,7 @@ internal static partial class Interop
         internal static extern PlayerErrorCode GetVolume(IntPtr player, out float left, out float right);
 
         [DllImport(Libraries.Player, EntryPoint = "player_set_sound_stream_info")]
-        internal static extern PlayerErrorCode SetAudioPolicyInfo(IntPtr player, IntPtr streamInfo);
+        internal static extern PlayerErrorCode SetAudioPolicyInfo(IntPtr player, AudioStreamPolicyHandle streamInfo);
 
         [DllImport(Libraries.Player, EntryPoint = "player_set_audio_latency_mode")]
         internal static extern PlayerErrorCode SetAudioLatencyMode(IntPtr player, AudioLatencyMode latencyMode);
@@ -195,54 +210,6 @@ internal static partial class Interop
         [DllImport(Libraries.Player, EntryPoint = "player_get_media_stream_buffer_min_threshold")]
         internal static extern PlayerErrorCode GetMediaStreamBufferMinThreshold(IntPtr player, int type, out uint percent);
 
-        [DllImport(Libraries.Player, EntryPoint = "player_audio_effect_get_equalizer_bands_count")]
-        internal static extern PlayerErrorCode AudioEffectGetEqualizerBandsCount(IntPtr player, out int count);
-
-        [DllImport(Libraries.Player, EntryPoint = "player_audio_effect_set_equalizer_band_level")]
-        internal static extern PlayerErrorCode AudioEffectSetEqualizerBandLevel(IntPtr player, int index, int level);
-
-        [DllImport(Libraries.Player, EntryPoint = "player_audio_effect_get_equalizer_band_level")]
-        internal static extern PlayerErrorCode AudioEffectGetEqualizerBandLevel(IntPtr player, int index, out int level);
-
-        [DllImport(Libraries.Player, EntryPoint = "player_audio_effect_set_equalizer_all_bands")]
-        internal static extern PlayerErrorCode AudioEffectSetEqualizerAllBands(IntPtr player, out int band_levels, int length);
-
-        [DllImport(Libraries.Player, EntryPoint = "player_audio_effect_get_equalizer_level_range")]
-        internal static extern PlayerErrorCode AudioEffectGetEqualizerLevelRange(IntPtr player, out int min, out int max);
-
-        [DllImport(Libraries.Player, EntryPoint = "player_audio_effect_get_equalizer_band_frequency")]
-        internal static extern PlayerErrorCode AudioEffectGetEqualizerBandFrequency(IntPtr player, int index, out int frequency);
-
-        [DllImport(Libraries.Player, EntryPoint = "player_audio_effect_get_equalizer_band_frequency_range")]
-        internal static extern PlayerErrorCode AudioEffectGetEqualizerBandFrequencyRange(IntPtr player, int index, out int range);
-
-        [DllImport(Libraries.Player, EntryPoint = "player_audio_effect_equalizer_clear")]
-        internal static extern PlayerErrorCode AudioEffectEqualizerClear(IntPtr player);
-
-        [DllImport(Libraries.Player, EntryPoint = "player_audio_effect_equalizer_is_available")]
-        internal static extern PlayerErrorCode AudioEffectEqualizerIsAvailable(IntPtr player, out bool available);
-
-        [DllImport(Libraries.Player, EntryPoint = "player_set_display_mode")]
-        internal static extern PlayerErrorCode SetDisplayMode(IntPtr player, PlayerDisplayMode mode);
-
-        [DllImport(Libraries.Player, EntryPoint = "player_get_display_mode")]
-        internal static extern PlayerErrorCode GetDisplayMode(IntPtr player, out int mode);
-
-        [DllImport(Libraries.Player, EntryPoint = "player_set_display_visible")]
-        internal static extern PlayerErrorCode SetDisplayVisible(IntPtr player, bool visible);
-
-        [DllImport(Libraries.Player, EntryPoint = "player_is_display_visible")]
-        internal static extern PlayerErrorCode IsDisplayVisible(IntPtr player, out bool visible);
-
-        [DllImport(Libraries.Player, EntryPoint = "player_set_display_rotation")]
-        internal static extern PlayerErrorCode SetDisplayRotation(IntPtr player, PlayerDisplayRotation rotation);
-
-        [DllImport(Libraries.Player, EntryPoint = "player_get_display_rotation")]
-        internal static extern PlayerErrorCode GetDisplayRotation(IntPtr player, out int rotation);
-
-        [DllImport(Libraries.Player, EntryPoint = "player_set_display_roi_area")]
-        internal static extern PlayerErrorCode SetDisplayRoi(IntPtr player, int x, int y, int width, int height);
-
         [DllImport(Libraries.Player, EntryPoint = "player_get_content_info")]
         internal static extern PlayerErrorCode GetContentInfo(IntPtr player, StreamMetadataKey key, out IntPtr value);