final class WavAudioFormat[R, W] extends WavAudioReader[R] with WavAudioWriter[W]
Audio format WAV files.
- Alphabetic
- By Inheritance
- WavAudioFormat
- WavAudioWriter
- AudioClipWriter
- WavAudioReader
- AudioClipReader
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val bitRate: Int
- Definition Classes
- WavAudioFormat → WavAudioWriter
- val byteReader: ByteReader[R]
- Definition Classes
- WavAudioFormat → WavAudioReader
- val byteWriter: ByteWriter[W]
- Definition Classes
- WavAudioFormat → WavAudioWriter
- val chunkSize: Int
- Definition Classes
- WavAudioWriter
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fromByteArray(data: Array[Byte]): Either[String, AudioClip]
Loads an audio clip from a byte array.
Loads an audio clip from a byte array.
- data
Byte array
- returns
Either a AudioClip with the audio data or an error string
- Definition Classes
- AudioClipReader
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def loadClip(is: InputStream): Either[String, AudioClip]
Loads an audio clip from an InputStream.
Loads an audio clip from an InputStream.
- is
InputStream with the audio clip data
- returns
Either a AudioClip with the audio clip data or an error string
- Definition Classes
- WavAudioReader → AudioClipReader
- def loadClip(resource: Resource): Try[Either[String, AudioClip]]
Loads an audio clip from a Resource.
Loads an audio clip from a Resource.
- 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
- Definition Classes
- AudioClipReader
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- val sampleRate: Int
- Definition Classes
- WavAudioWriter
- def storeClip(clip: AudioClip, os: OutputStream): Either[String, Unit]
Stores an audio clip to an OutputStream.
Stores an audio clip to an OutputStream.
- clip
AudioClip to store
- os
OutputStream where to store the data
- returns
Either unit or an error string
- Definition Classes
- WavAudioWriter → AudioClipWriter
- def storeClip(clip: AudioClip, resource: Resource): Try[Either[String, Unit]]
Stores an audio clip to a Resource.
Stores an audio clip to a Resource.
- clip
AudioCLip to store
- resource
Resource where to store the data
- returns
Either unit or an error string, inside a Try capturing the IO exceptions
- Definition Classes
- AudioClipWriter
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- 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.
- clip
AudioClip to convert
- returns
Either an array with the clip data or an error string
- Definition Classes
- AudioClipWriter
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])