AlSourceWriteEvent

This event is fired when the write has been invoked.

Constructors

Link copied to clipboard
constructor(@NotNull source: @NotNull AlSource, samples: Array<Byte>)
constructor(@NotNull source: @NotNull AlSource, samples: Array<Short>)

Functions

Link copied to clipboard
open fun getSamples(): Array<Byte>
Gets a copy of the samples that will be written to the source.
Link copied to clipboard
Gets the samples that will be written to the source.
Link copied to clipboard
open fun isCancelled(): Boolean
Link copied to clipboard
open fun setCancelled(cancel: Boolean)
Link copied to clipboard
open fun setSamples(samples: Array<Byte>)
Replaces the samples that will be written to the source.
Link copied to clipboard
open fun setSamplesShorts(samples: Array<Short>)
Replaces the samples that will be written to the source.