ISoundSource

Sound source interface.

Inheritors

Constructors

Link copied to clipboard
constructor()
constructor(address: Long, isRef: Boolean)

Properties

Link copied to clipboard

Address of native referenced object. nullptr if not referencing any native allocated object. Note native allocation will happen only once.

Link copied to clipboard

Gets the MIME type for this source.

Link copied to clipboard

Gets the TTS MIME type for this source. Required for TTS.

Functions

Link copied to clipboard
open external fun assign(value: ISoundSource)

Assign new value for this source.

Link copied to clipboard
fun finalize()

Overrides finalize that garbage collector will call when needed.

Link copied to clipboard
open external fun getId(): Int

Gets the unique ID of this source.

Link copied to clipboard
open external fun getLanguageCode(): String?

Gets the ISO 639-3 three letters language code. Required for TTS.

Link copied to clipboard

Gets the MIME type for this source.

Link copied to clipboard
open external fun getRegionCode(): String?

Gets the ISO 3166-1 three letters region code. Required for TTS.

Link copied to clipboard
open external fun getScriptCode(): String?

Gets the ISO 15924 four letters script code. It is available only when variant is transcription or transliteration. Required for TTS.

Link copied to clipboard
open external fun getSize(): Int

Gets the size of the stream in bytes.

Link copied to clipboard

Gets the TTS MIME type for this source. Required for TTS.

Link copied to clipboard

True if keeps a reference to a C++ SDK object False if keeps a C++ SDK object

Link copied to clipboard
open fun mimeType(): EMimeType

Gets the MIME type for this source.

Link copied to clipboard
operator fun not(): Boolean

Checks if this object is valid.

Link copied to clipboard
open external fun read(buffer: ByteArray): Int

Read data from the source. Returns the number of bytes read from the source. If the returned value is equal to size than this means that all data from the source was consumed.

Link copied to clipboard
fun release()

Releases the native referenced value of this object if:

Link copied to clipboard
open external fun seek(offset: Int, whence: Int): Int

Sets the stream position.

Link copied to clipboard
open external fun tell(): Int

Gets the current stream position.

Link copied to clipboard

Gets the TTS MIME type for this source. Required for TTS.