Function

MusicPlayerSetPlayRateScalar

Sets a playback rate multiplier for a music player.

Declaration

OSStatus MusicPlayerSetPlayRateScalar(MusicPlayer inPlayer, Float64 inScaleRate);

Parameters

inPlayer

The music player that you want to set a playback rate multiplier on.

inScaleRate

The playback rate multiplier to apply to the music player. For example, setting this parameter to a value of 2 doubles the playback rate. Must be greater than 0.

Return Value

A result code

Discussion

A music player’s default playback rate multiplier is 1.0.

See Also