Android.Media.AudioTrack.SetPlaybackRate Method
Sets the playback sample rate for this track.

Syntax

[Android.Runtime.Register("setPlaybackRate", "(I)I", "GetSetPlaybackRate_IHandler")]
public virtual int SetPlaybackRate (int sampleRateInHz)

Parameters

sampleRateInHz
the sample rate expressed in Hz

Returns

Documentation for this section has not yet been entered.

Remarks

Sets the playback sample rate for this track. This sets the sampling rate at which the audio data will be consumed and played back (as set by the sampleRateInHz parameter in the AudioTrack(Stream, System.Int32, System.Int32, System.Int32, System.Int32, System.Int32) constructor), not the original sampling rate of the content. For example, setting it to half the sample rate of the content will cause the playback to last twice as long, but will also result in a pitch shift down by one octave. The valid sample rate range is from 1 Hz to twice the value returned by AudioTrack.GetNativeOutputSampleRate(Stream).

[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