getStreamTime method

Duration getStreamTime(
  1. SoundHandle handle
)

Get the current stream time of a voice identified by its handle.

Returns Duration.zero if handle is invalid.

Throws SoLoudNotInitializedException if the engine is not initialized.

Implementation

Duration getStreamTime(SoundHandle handle) {
  if (!isInitialized) {
    throw const SoLoudNotInitializedException();
  }
  return _controller.soLoudFFI.getStreamTime(handle);
}