AiffAudioReader

eu.joaocosta.minart.audio.sound.aiff.AiffAudioReader
See theAiffAudioReader companion object
trait AiffAudioReader[ByteSeq] extends AudioClipReader

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class AiffAudioFormat[R, W]

Members list

Concise view

Value members

Concrete methods

def loadClip(is: InputStream): Either[String, AudioClip]

Loads an audio clip from an InputStream.

Loads an audio clip from an InputStream.

Attributes

is

InputStream with the audio clip data

Returns:

Either a AudioClip with the audio clip data or an error string

Inherited methods

def fromByteArray(data: Array[Byte]): Either[String, AudioClip]

Loads an audio clip from a byte array.

Loads an audio clip from a byte array.

Attributes

data

Byte array

Returns:

Either a AudioClip with the audio data or an error string

Inherited from:
AudioClipReader
def loadClip(resource: Resource): Try[Either[String, AudioClip]]

Loads an audio clip from a Resource.

Loads an audio clip from a Resource.

Attributes

resource

Resource with the audio clip data

Returns:

Either a AudioClip with the audio clip data or an error string, inside a Try capturing the IO exceptions

Inherited from:
AudioClipReader

Abstract fields

val byteReader: ByteReader[ByteSeq]