seekTo

actual fun seekTo(framePosition: Long)

Seeks to the specified frame position in the audio data.

After seeking, subsequent calls to readFrames or readAll will decode from the new position. Seeking to position 0 resets the reader to the beginning of the file and clears the isAtEnd flag.

Parameters

framePosition

The zero-based frame index to seek to. Must be non-negative. Values beyond the end of the file will cause isAtEnd to return true on the next read.

Throws

if the seek operation fails or the format does not support seeking.

actual fun seekTo(framePosition: Long)

Seeks to the specified frame position in the audio data.

After seeking, subsequent calls to readFrames or readAll will decode from the new position. Seeking to position 0 resets the reader to the beginning of the file and clears the isAtEnd flag.

Parameters

framePosition

The zero-based frame index to seek to. Must be non-negative. Values beyond the end of the file will cause isAtEnd to return true on the next read.

Throws

if the seek operation fails or the format does not support seeking.

expect fun seekTo(framePosition: Long)

Seeks to the specified frame position in the audio data.

After seeking, subsequent calls to readFrames or readAll will decode from the new position. Seeking to position 0 resets the reader to the beginning of the file and clears the isAtEnd flag.

Parameters

framePosition

The zero-based frame index to seek to. Must be non-negative. Values beyond the end of the file will cause isAtEnd to return true on the next read.

Throws

if the seek operation fails or the format does not support seeking.

actual fun seekTo(framePosition: Long)

Seeks to the specified frame position in the audio data.

After seeking, subsequent calls to readFrames or readAll will decode from the new position. Seeking to position 0 resets the reader to the beginning of the file and clears the isAtEnd flag.

Parameters

framePosition

The zero-based frame index to seek to. Must be non-negative. Values beyond the end of the file will cause isAtEnd to return true on the next read.

Throws

if the seek operation fails or the format does not support seeking.

actual fun seekTo(framePosition: Long)

Seeks to the specified frame position in the audio data.

After seeking, subsequent calls to readFrames or readAll will decode from the new position. Seeking to position 0 resets the reader to the beginning of the file and clears the isAtEnd flag.

Parameters

framePosition

The zero-based frame index to seek to. Must be non-negative. Values beyond the end of the file will cause isAtEnd to return true on the next read.

Throws

if the seek operation fails or the format does not support seeking.

actual fun seekTo(framePosition: Long)

Seeks to the specified frame position in the audio data.

After seeking, subsequent calls to readFrames or readAll will decode from the new position. Seeking to position 0 resets the reader to the beginning of the file and clears the isAtEnd flag.

Parameters

framePosition

The zero-based frame index to seek to. Must be non-negative. Values beyond the end of the file will cause isAtEnd to return true on the next read.

Throws

if the seek operation fails or the format does not support seeking.

actual fun seekTo(framePosition: Long)

Seeks to the specified frame position in the audio data.

After seeking, subsequent calls to readFrames or readAll will decode from the new position. Seeking to position 0 resets the reader to the beginning of the file and clears the isAtEnd flag.

Parameters

framePosition

The zero-based frame index to seek to. Must be non-negative. Values beyond the end of the file will cause isAtEnd to return true on the next read.

Throws

if the seek operation fails or the format does not support seeking.

actual fun seekTo(framePosition: Long)

Seeks to the specified frame position in the audio data.

After seeking, subsequent calls to readFrames or readAll will decode from the new position. Seeking to position 0 resets the reader to the beginning of the file and clears the isAtEnd flag.

Parameters

framePosition

The zero-based frame index to seek to. Must be non-negative. Values beyond the end of the file will cause isAtEnd to return true on the next read.

Throws

if the seek operation fails or the format does not support seeking.