MP3Base

open class MP3Base : AudioFormat

Inheritors

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
class Parser(val data: AsyncStream, val dataLength: Long)
Link copied to clipboard
class SeekingTable(val microseconds: DoubleArrayList, val filePositions: DoubleArrayList, val rate: Int = 44100)

Properties

Link copied to clipboard
open val extensions: Set<String>
Link copied to clipboard
open val name: String

Functions

Link copied to clipboard
suspend fun decode(data: AsyncStream, props: AudioDecodingProps = AudioDecodingProps.DEFAULT): AudioData?
suspend fun decode(data: ByteArray, props: AudioDecodingProps = AudioDecodingProps.DEFAULT): AudioData?
Link copied to clipboard
suspend fun decodeStream(data: AsyncStream, props: AudioDecodingProps = AudioDecodingProps.DEFAULT): AudioStream?
Link copied to clipboard
Link copied to clipboard
open suspend fun encode(data: AudioData, out: AsyncOutputStream, filename: String, props: AudioEncodingProps = AudioEncodingProps.DEFAULT)
Link copied to clipboard
suspend fun encodeToByteArray(data: AudioData, filename: String = "out.wav", format: AudioFormat = this, props: AudioEncodingProps = AudioEncodingProps.DEFAULT): ByteArray
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open suspend override fun tryReadInfo(data: AsyncStream, props: AudioDecodingProps): AudioFormat.Info?