Instance Property

currentTime

The playback point, in seconds, within the timeline of the sound associated with the audio player.

Declaration

@property NSTimeInterval currentTime;

Discussion

If the sound is playing, currentTime is the offset of the current playback position, measured in seconds from the start of the sound. If the sound is not playing, currentTime is the offset of where playing starts upon calling the play method, measured in seconds from the start of the sound.

By setting this property you can seek to a specific point in a sound file or implement audio fast-forward and rewind functions.

See Also

Managing Information About a Sound

numberOfChannels

The number of audio channels in the sound associated with the audio player.

channelAssignments

An array of AVAudioSessionChannelDescription objects associated with the audio player

duration

The total duration, in seconds, of the sound associated with the audio player.

deviceCurrentTime

The time value, in seconds, of the audio output device.

url

The URL for the sound associated with the audio player.

data

The data object containing the sound associated with the audio player.

currentDevice

The UID of the current audio player.

format

The format of the audio in the buffer.