Exemplo n.º 1
0
        /// <summary>
        /// Gets the size allocated for the audio output buffer.
        /// </summary>
        /// <exception cref="ObjectDisposedException">The AudioPlayback has already been disposed of.</exception>
        /// <since_tizen> 3 </since_tizen>
        public int GetBufferSize()
        {
            AudioOutput.GetBufferSize(_handle, out var size)
            .ThrowIfFailed("Failed to get buffer size.");

            return(size);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Gets the size allocated for the audio output buffer.
 /// </summary>
 /// <exception cref="ObjectDisposedException">The AudioPlayback has already been disposed of.</exception>
 /// <since_tizen> 3 </since_tizen>
 public int GetBufferSize()
 {
     AudioIOUtil.ThrowIfError(AudioOutput.GetBufferSize(_handle, out var size));
     return(size);
 }