package io
- Alphabetic
- By Inheritance
- io
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- trait AudioFile extends Channel
- final case class AudioFileSpec(fileType: AudioFileType = AudioFileType.AIFF, sampleFormat: SampleFormat = SampleFormat.Float, numChannels: Int, sampleRate: Double, byteOrder: Option[ByteOrder] = None, numFrames: Long = 0L) extends Product with Serializable
-
sealed
trait
AudioFileType extends AnyRef
A recognized audio file type.
- type Frames = Array[Array[Float]]
- trait ReaderFactory extends AnyRef
- abstract class SampleFormat extends AnyRef
Value Members
-
object
AudioFile extends ReaderFactory
The
AudioFileallows reading and writing of sound files.The
AudioFileallows reading and writing of sound files. It can operate both on aRandomAccessFilecreated from aFileinstance, or on an kind ofInputStream(not every codec will support this though, and functionality might be limited, for example seeking is not possible with a plainInputStream).The codecs are registered with
AudioFileType. The codecs that come with AudioFile are found in theimplpackage.Reading and writing data requires a user-buffer which holds de-interleaved floating point data, that is a two dimensional
Arraywhich holdsFloatdata. A type aliasFramesis provided for this, and two helper methodsbuffer: one static to construct an arbitrary user-buffer, one in classAudioFilewhich creates a buffer with the appropriate channel number.- To do
the copyTo method uses a user-buffer. it should check for the possibility to directly transfer data if input and output are compatible.
- See also
AudioFileType
- object AudioFileSpec extends Serializable
- object AudioFileType
-
object
BuildInfo extends Product with Serializable
This object was generated by sbt-buildinfo.
- object SampleFormat