[AudioIO] Allow GetBufferSize for all state
authorJeongho Mok <jho.mok@samsung.com>
Thu, 9 Mar 2017 11:00:24 +0000 (20:00 +0900)
committerJeongho Mok <jho.mok@samsung.com>
Thu, 9 Mar 2017 11:04:10 +0000 (20:04 +0900)
Change-Id: Ieb1b0b14e8454d714293c08f9aa6260b793be5a0

packaging/csapi-multimedia.spec
src/Tizen.Multimedia/AudioIO/AudioCapture.cs
src/Tizen.Multimedia/AudioIO/AudioPlayback.cs

index 118c62a..a9e561b 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       csapi-multimedia
 Summary:    Tizen Multimedia API for C#
-Version:    1.0.38
+Version:    1.0.39
 Release:    0
 Group:      Development/Libraries
 License:    Apache-2.0
index 783521c..d7e68ad 100755 (executable)
@@ -149,11 +149,8 @@ namespace Tizen.Multimedia
         /// Gets the size to be allocated for the audio input buffer.
         /// </summary>
         /// <exception cref="ObjectDisposedException">The AudioPlayback has already been disposed.</exception>
-        /// <exception cref="InvalidOperationException">The current state is <see cref="AudioIOState.Idle"/>.</exception>
         public int GetBufferSize()
         {
-            ValidateState(AudioIOState.Running, AudioIOState.Paused);
-
             int size;
             AudioIOUtil.ThrowIfError(Interop.AudioIO.AudioInput.GetBufferSize(_handle, out size));
             return size;
index 99a8908..ef38513 100755 (executable)
@@ -206,11 +206,8 @@ namespace Tizen.Multimedia
         /// Gets the size to be allocated for the audio output buffer.
         /// </summary>
         /// <exception cref="ObjectDisposedException">The AudioPlayback has already been disposed.</exception>
-        /// <exception cref="InvalidOperationException">The current state is <see cref="AudioIOState.Idle"/>.</exception>
         public int GetBufferSize()
         {
-            ValidateState(AudioIOState.Running, AudioIOState.Paused);
-
             int size = 0;
             AudioIOUtil.ThrowIfError(Interop.AudioIO.AudioOutput.GetBufferSize(_handle, out size));
             return size;