Android.Media.AudioTrack.Stop Method
Stops playing the audio data.

Syntax

[Android.Runtime.Register("stop", "()V", "GetStopHandler")]
public virtual void Stop ()

Exceptions

TypeReason
Java.Lang.IllegalStateException

Remarks

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

[Android Documentation]

Requirements

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