Android.Media.MediaCodec.DequeueInputBuffer Method
Returns the index of an input buffer to be filled with valid data or -1 if no such buffer is currently available.

Syntax

[Android.Runtime.Register("dequeueInputBuffer", "(J)I", "")]
public int DequeueInputBuffer (long timeoutUs)

Parameters

timeoutUs
The timeout in microseconds, a negative timeout indicates "infinite".

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IllegalStateExceptionif not in the Executing state, or codec is configured in asynchronous mode.
!:NoType:android/media/MediaCodec$CodecException;Href=../../../reference/android/media/MediaCodec.CodecException.htmlupon codec error.

Remarks

Returns the index of an input buffer to be filled with valid data or -1 if no such buffer is currently available. This method will return immediately if timeoutUs == 0, wait indefinitely for the availability of an input buffer if timeoutUs < 0 or wait up to "timeoutUs" microseconds if timeoutUs > 0.

[Android Documentation]

Requirements

Namespace: Android.Media
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 16