AudioRecord.SetPositionNotificationPeriod(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.