Example #1
0
        /// <summary>
        /// Gets the size allocated for the audio input buffer.
        /// </summary>
        /// <exception cref="ObjectDisposedException">The AudioCaptureBase has already been disposed of.</exception>
        /// <since_tizen> 3 </since_tizen>
        public int GetBufferSize()
        {
            ValidateNotDisposed();

            AudioIOUtil.ThrowIfError(AudioInput.GetBufferSize(_handle, out var size));
            return(size);
        }
Example #2
0
        /// <summary>
        /// Gets the size allocated for the audio input buffer.
        /// </summary>
        /// <returns>The buffer size of audio data captured.</returns>
        /// <exception cref="ObjectDisposedException">The AudioCaptureBase has already been disposed of.</exception>
        /// <since_tizen> 3 </since_tizen>
        public int GetBufferSize()
        {
            ValidateNotDisposed();

            AudioInput.GetBufferSize(_handle, out var size)
            .ThrowIfFailed("Failed to get buffer size.");

            return(size);
        }