[Audio] Move AudioSampleType to AudioIO
authorJeongho Mok <jho.mok@samsung.com>
Tue, 7 Feb 2017 05:15:10 +0000 (14:15 +0900)
committerJeongho Mok <jho.mok@samsung.com>
Tue, 14 Feb 2017 03:48:03 +0000 (19:48 -0800)
Change-Id: I7f6e3864911ee8a745cebdc1e23182952e2bd9d6

src/Tizen.Multimedia/AudioIO/AudioIOEnums.cs [changed mode: 0644->0755]
src/Tizen.Multimedia/AudioManager/AudioDevice.cs [changed mode: 0644->0755]
src/Tizen.Multimedia/AudioManager/StreamFocusStateChangedEventArgs.cs
src/Tizen.Multimedia/Recorder/RecorderEnums.cs [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index ee20b45..03c4a19
@@ -60,5 +60,21 @@ namespace Tizen.Multimedia
         /// The stream is paused.
         /// </summary>
         Paused = 2
+    }\r
+\r
+    /// <summary>
+    /// Enumeration for audio sample type.
+    /// </summary>
+    public enum AudioSampleType
+    {
+        /// <summary>
+        /// Unsigned 8-bit audio samples.
+        /// </summary>
+        U8 = 0x70,
+        /// <summary>
+        /// Signed 16-bit audio samples.
+        /// </summary>
+        S16Le
     }
+
 }
old mode 100644 (file)
new mode 100755 (executable)
index ba9de40..e085d9c
@@ -29,12 +29,12 @@ namespace Tizen.Multimedia
     /// </summary>
     public class AudioDevice
     {
-        private int _id;
-        private string _name;
-        private AudioDeviceType _type;
-        private AudioDeviceIoDirection _ioDirection;
-        private AudioDeviceState _state;
-        private IntPtr _handle;
+        private readonly int _id;
+        private readonly string _name;
+        private readonly AudioDeviceType _type;
+        private readonly AudioDeviceIoDirection _ioDirection;
+        private readonly AudioDeviceState _state;
+        private readonly IntPtr _handle;
 
         internal AudioDevice(IntPtr deviceHandle)
         {
@@ -83,64 +83,28 @@ namespace Tizen.Multimedia
         /// <summary>
         /// The id of the device.
         /// </summary>
-        public int Id
-        {
-            get
-            {
-                return _id;
-            }
-        }
+        public int Id => _id;
 
         /// <summary>
         /// The name of the device.
         /// </summary>
-        public string Name
-        {
-            get
-            {
-                return _name;
-            }
-        }
+        public string Name => _name;
 
         /// <summary>
         /// The type of the device.
         /// </summary>
-        public AudioDeviceType Type
-        {
-            get
-            {
-                return _type;
-            }
-        }
+        public AudioDeviceType Type => _type;
 
         /// <summary>
         /// The io direction of the device.
         /// </summary>
-        public AudioDeviceIoDirection IoDirection
-        {
-            get
-            {
-                return _ioDirection;
-            }
-        }
+        public AudioDeviceIoDirection IoDirection => _ioDirection;
 
         /// <summary>
         /// The state of the device.
         /// </summary>
-        public AudioDeviceState State
-        {
-            get
-            {
-                return _state;
-            }
-        }
+        public AudioDeviceState State => _state;
 
-        internal IntPtr Handle
-        {
-            get
-            {
-                return _handle;
-            }
-        }
+        internal IntPtr Handle => _handle;
     }
 }
index e2870d1..c0cee8c 100755 (executable)
@@ -27,7 +27,7 @@ namespace Tizen.Multimedia
         internal StreamFocusStateChangedEventArgs(AudioStreamFocusChangedReason reason, string extraInformation)\r
         {\r
             FocusChangedReason = reason;\r
-            ExtraInfoformation = extraInformation;\r
+            ExtraInformation = extraInformation;\r
         }\r
 \r
         /// <summary>\r
@@ -38,6 +38,6 @@ namespace Tizen.Multimedia
         /// <summary>\r
         /// The extra information\r
         /// </summary>\r
-        public string ExtraInfoformation { get; }\r
+        public string ExtraInformation { get; }\r
     }\r
 }\r
old mode 100644 (file)
new mode 100755 (executable)
index 003c564..6cbcb61
@@ -212,21 +212,6 @@ namespace Tizen.Multimedia
     }
 
     /// <summary>
-    /// Enumeration for audio sample type.
-    /// </summary>
-    public enum AudioSampleType
-    {
-        /// <summary>
-        /// Unsigned 8-bit audio samples.
-        /// </summary>
-        U8 = 0x70,
-        /// <summary>
-        /// Signed 16-bit audio samples.
-        /// </summary>
-        S16Le
-    }
-
-    /// <summary>
     /// Enumeration for recorder failure error.
     /// </summary>
     public enum RecorderErrorCode