2 * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 using Tizen.Internals.Errors;
19 namespace Tizen.Multimedia
21 public enum AudioChannel
27 internal enum AudioIOError
29 None = ErrorCode.None,
30 OutOfMemory = ErrorCode.OutOfMemory,
31 InvalidParameter = ErrorCode.InvalidParameter,
32 InvalidOperation = ErrorCode.InvalidOperation,
33 PermissionDenied = ErrorCode.PermissionDenied, //Device open error by security
34 NotSupported = ErrorCode.NotSupported, //Not supported
35 DevicePolicyRestriction = (-2147483648 / 2) + 4,
36 DeviceNotOpened = -0x01900000 | 0x01,
37 DeviceNotClosed = -0x01900000 | 0x02,
38 InvalidBuffer = -0x01900000 | 0x03,
39 SoundPolicy = -0x01900000 | 0x04,
40 InvalidState = -0x01900000 | 0x05,
41 NotSupportedType = -0x01900000 | 0x06,
45 /// Specifies the states for the <see cref="AudioPlayback"/>, <see cref="AudioCapture"/>, and <see cref="AsyncAudioCapture"/>.
47 public enum AudioIOState
55 /// The stream is running.
60 /// The stream is paused.
66 /// Specifies the audio sample types.
68 public enum AudioSampleType
71 /// Unsigned 8-bit audio samples.
75 /// Signed 16-bit audio samples.