write

abstract fun write(samples: ShortArray, applyFilters: Boolean = true)

Writes audio samples to the source.

The source keeps a reference to samples until they have been uploaded to the device, so the array must not be reused or modified after this call.

Parameters

samples

The audio samples to write.

applyFilters

Whether the audio filters from device should be applied.


abstract fun write(samples: ByteArray)

Writes audio samples to the source without applying device filters.

Parameters

samples

The audio samples to write.