Compartilhar via


AudioTrack.SetState(Int32) Method

Definition

Caution

deprecated

Sets the initialization state of the instance.

[Android.Runtime.Register("setState", "(I)V", "GetSetState_IHandler")]
[System.Obsolete("deprecated")]
protected virtual void SetState (int state);
[<Android.Runtime.Register("setState", "(I)V", "GetSetState_IHandler")>]
[<System.Obsolete("deprecated")>]
abstract member SetState : int -> unit
override this.SetState : int -> unit

Parameters

state
Int32

the state of the AudioTrack instance

Attributes

Remarks

Sets the initialization state of the instance. This method was originally intended to be used in an AudioTrack subclass constructor to set a subclass-specific post-initialization state. However, subclasses of AudioTrack are no longer recommended, so this method is obsolete.

This member is deprecated. Only accessible by subclasses, which are not recommended for AudioTrack.

Java documentation for android.media.AudioTrack.setState(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