AiffAudioWriter

eu.joaocosta.minart.audio.sound.aiff.AiffAudioWriter
See theAiffAudioWriter companion object
trait AiffAudioWriter(sampleRate: Int, bitRate: Int) extends AudioClipWriter

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Concrete methods

final def storeClip(clip: AudioClip, os: OutputStream): Either[String, Unit]

Stores an audio clip to an OutputStream.

Stores an audio clip to an OutputStream.

Value parameters

clip

AudioClip to store

os

OutputStream where to store the data

Attributes

Returns

Either unit or an error string

Inherited methods

def storeClip(clip: AudioClip, resource: Resource): Try[Either[String, Unit]]

Stores an audio clip to a Resource.

Stores an audio clip to a Resource.

Value parameters

clip

AudioCLip to store

resource

Resource where to store the data

Attributes

Returns

Either unit or an error string, inside a Try capturing the IO exceptions

Inherited from:
AudioClipWriter
def toByteArray(clip: AudioClip): Either[String, Array[Byte]]

Returns the audio clip data as a byte array.

Returns the audio clip data as a byte array.

Value parameters

clip

AudioClip to convert

Attributes

Returns

Either an array with the clip data or an error string

Inherited from:
AudioClipWriter