次の方法で共有


AudioRecord.SetPositionNotificationPeriod(Int32) Method

Definition

Sets the period at which the listener is called, if set with #setRecordPositionUpdateListener(OnRecordPositionUpdateListener) or #setRecordPositionUpdateListener(OnRecordPositionUpdateListener, Handler).

[Android.Runtime.Register("setPositionNotificationPeriod", "(I)I", "GetSetPositionNotificationPeriod_IHandler")]
public virtual Android.Media.RecordStatus SetPositionNotificationPeriod (int periodInFrames);
[<Android.Runtime.Register("setPositionNotificationPeriod", "(I)I", "GetSetPositionNotificationPeriod_IHandler")>]
abstract member SetPositionNotificationPeriod : int -> Android.Media.RecordStatus
override this.SetPositionNotificationPeriod : int -> Android.Media.RecordStatus

Parameters

periodInFrames
Int32

update period expressed in frames

Returns

error code or success, see #SUCCESS, #ERROR_INVALID_OPERATION

Attributes

Remarks

Sets the period at which the listener is called, if set with #setRecordPositionUpdateListener(OnRecordPositionUpdateListener) or #setRecordPositionUpdateListener(OnRecordPositionUpdateListener, Handler). It is possible for notifications to be lost if the period is too small.

Java documentation for android.media.AudioRecord.setPositionNotificationPeriod(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to