Freigeben über


AudioTrack.Stop Method

Definition

Stops playing the audio data.

[Android.Runtime.Register("stop", "()V", "GetStopHandler")]
public virtual void Stop ();
[<Android.Runtime.Register("stop", "()V", "GetStopHandler")>]
abstract member Stop : unit -> unit
override this.Stop : unit -> unit
Attributes

Exceptions

Remarks

Stops playing the audio data. When used on an instance created in #MODE_STREAM mode, audio will stop playing after the last buffer that was written has been played. For an immediate stop, use #pause(), followed by #flush() to discard audio data that hasn't been played back yet.

Java documentation for android.media.AudioTrack.stop().

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