Length. Returns the amount of patterns in the module Formats that support this: MOD, XM.
Finalize encoding. After finalization, further writes are not possible anymore however the stream is considered complete and valid for storage.
Call fflush() on written samples, if any. It is only useful for streamable output formats, that may want to flush things to disk.
Playback info. Returns the amount of multi-channel frames remaining in the current playing pattern. Formats that support this: MOD
Length. Returns the amount of PLAYED patterns in the module Formats that support this: MOD, XM.
Opens an audio stream that decodes from a file. This stream will be opened for reading only.
Opens an audio stream that decodes from memory. This stream will be opened for reading only. Note: throws a manually allocated exception in case of error. Free it with dplug.core.destroyFree.
Opens an audio stream that writes to a dynamically growable output buffer. This stream will be open for writing only. Access to the internal buffer after encoding with finalizeAndGetEncodedResult. Note: throws a manually allocated exception in case of error. Free it with dplug.core.destroyFree.
Opens an audio stream that writes to file. This stream will be open for writing only. Note: throws a manually allocated exception in case of error. Free it with dplug.core.destroyFree.
Opens an audio stream that writes to a pre-defined area in memory of maxLength bytes. This stream will be open for writing only. Destroy this stream with closeAudioStream. Note: throws a manually allocated exception in case of error. Free it with dplug.core.destroyFree.
Read interleaved double samples in the given buffer outData.
Read interleaved float samples in the given buffer outData.
Tell. Returns amount of rows in a pattern. Formats that support this: MOD, XM.
Seeking. Subsequent reads start from pattern + row, 0 index Only available for input streams. Formats that support seeking per pattern/row: MOD, XM
Seeking. Subsequent reads start from multi-channel frame index frames. Only available for input streams, for streams whose canSeek() returns true. Warning: seekPosition(lengthInFrames) is Undefined Behaviour for now. (it works in MP3
Tell. Returns the current playing pattern id Formats that support this: MOD, XM
Tell. Returns the current playing row id Formats that support this: MOD, XM
Tell. Returns the current position in multichannel frames. -1 on error.
Write interleaved double samples to the stream, from the given buffer inData[0..frames].
Write interleaved float samples to the stream, from the given buffer inData[0..frames].
An AudioStream is a pointer to a dynamically allocated Stream.