readAll
Reads and decodes all remaining audio frames into memory.
This loads the entire remaining audio content at once, which may consume significant memory for large files. For streaming use cases, prefer readFrames in a loop or the coroutine-based com.vectencia.klarinet.coroutines.asFlow extension.
After this call, isAtEnd will return true.
Return
A FloatArray of interleaved PCM samples normalized to [-1.0, 1.0]. The array length equals totalFrames * info.channelCount.
Throws
if a decoding error occurs.
Reads and decodes all remaining audio frames into memory.
This loads the entire remaining audio content at once, which may consume significant memory for large files. For streaming use cases, prefer readFrames in a loop or the coroutine-based com.vectencia.klarinet.coroutines.asFlow extension.
After this call, isAtEnd will return true.
Return
A FloatArray of interleaved PCM samples normalized to [-1.0, 1.0]. The array length equals totalFrames * info.channelCount.
Throws
if a decoding error occurs.
Reads and decodes all remaining audio frames into memory.
This loads the entire remaining audio content at once, which may consume significant memory for large files. For streaming use cases, prefer readFrames in a loop or the coroutine-based com.vectencia.klarinet.coroutines.asFlow extension.
After this call, isAtEnd will return true.
Return
A FloatArray of interleaved PCM samples normalized to [-1.0, 1.0]. The array length equals totalFrames * info.channelCount.
Throws
if a decoding error occurs.
Reads and decodes all remaining audio frames into memory.
This loads the entire remaining audio content at once, which may consume significant memory for large files. For streaming use cases, prefer readFrames in a loop or the coroutine-based com.vectencia.klarinet.coroutines.asFlow extension.
After this call, isAtEnd will return true.
Return
A FloatArray of interleaved PCM samples normalized to [-1.0, 1.0]. The array length equals totalFrames * info.channelCount.
Throws
if a decoding error occurs.
Reads and decodes all remaining audio frames into memory.
This loads the entire remaining audio content at once, which may consume significant memory for large files. For streaming use cases, prefer readFrames in a loop or the coroutine-based com.vectencia.klarinet.coroutines.asFlow extension.
After this call, isAtEnd will return true.
Return
A FloatArray of interleaved PCM samples normalized to [-1.0, 1.0]. The array length equals totalFrames * info.channelCount.
Throws
if a decoding error occurs.
Reads and decodes all remaining audio frames into memory.
This loads the entire remaining audio content at once, which may consume significant memory for large files. For streaming use cases, prefer readFrames in a loop or the coroutine-based com.vectencia.klarinet.coroutines.asFlow extension.
After this call, isAtEnd will return true.
Return
A FloatArray of interleaved PCM samples normalized to [-1.0, 1.0]. The array length equals totalFrames * info.channelCount.
Throws
if a decoding error occurs.
Reads and decodes all remaining audio frames into memory.
This loads the entire remaining audio content at once, which may consume significant memory for large files. For streaming use cases, prefer readFrames in a loop or the coroutine-based com.vectencia.klarinet.coroutines.asFlow extension.
After this call, isAtEnd will return true.
Return
A FloatArray of interleaved PCM samples normalized to [-1.0, 1.0]. The array length equals totalFrames * info.channelCount.
Throws
if a decoding error occurs.
Reads and decodes all remaining audio frames into memory.
This loads the entire remaining audio content at once, which may consume significant memory for large files. For streaming use cases, prefer readFrames in a loop or the coroutine-based com.vectencia.klarinet.coroutines.asFlow extension.
After this call, isAtEnd will return true.
Return
A FloatArray of interleaved PCM samples normalized to [-1.0, 1.0]. The array length equals totalFrames * info.channelCount.
Throws
if a decoding error occurs.