pause

actual fun pause()

Pause audio processing.

Transitions the stream from StreamState.STARTED to StreamState.PAUSED. The stream retains its resources and can be resumed by calling start again. No audio callbacks will fire while paused.

This method is safe to call from any thread.

Throws

if the stream cannot be paused, for example if it is not currently started.

actual fun pause()

Pause audio processing.

Transitions the stream from StreamState.STARTED to StreamState.PAUSED. The stream retains its resources and can be resumed by calling start again. No audio callbacks will fire while paused.

This method is safe to call from any thread.

Throws

if the stream cannot be paused, for example if it is not currently started.

expect fun pause()

Pause audio processing.

Transitions the stream from StreamState.STARTED to StreamState.PAUSED. The stream retains its resources and can be resumed by calling start again. No audio callbacks will fire while paused.

This method is safe to call from any thread.

Throws

if the stream cannot be paused, for example if it is not currently started.

actual fun pause()

Pause audio processing.

Transitions the stream from StreamState.STARTED to StreamState.PAUSED. The stream retains its resources and can be resumed by calling start again. No audio callbacks will fire while paused.

This method is safe to call from any thread.

Throws

if the stream cannot be paused, for example if it is not currently started.

actual fun pause()

Pause audio processing.

Transitions the stream from StreamState.STARTED to StreamState.PAUSED. The stream retains its resources and can be resumed by calling start again. No audio callbacks will fire while paused.

This method is safe to call from any thread.

Throws

if the stream cannot be paused, for example if it is not currently started.

actual fun pause()

Pause audio processing.

Transitions the stream from StreamState.STARTED to StreamState.PAUSED. The stream retains its resources and can be resumed by calling start again. No audio callbacks will fire while paused.

This method is safe to call from any thread.

Throws

if the stream cannot be paused, for example if it is not currently started.