package audiofile
- Alphabetic
- Public
- Protected
Type Members
- trait AsyncAudioFile extends AudioFileBase with AsyncChannel
- trait AudioFile extends AudioFileBase with Channel
- trait AudioFileBase extends AnyRef
- trait AudioFilePlatform extends AnyRef
The JVM platform supports File I/O, e.g.
The JVM platform supports File I/O, e.g. opening an audio file using
openRead(f: File)
. - 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.
- trait AudioFileTypePlatform extends AnyRef
The JVM platform supports File I/O, e.g.
The JVM platform supports File I/O, e.g. reading from and writing to
RandomAccessFile
. - trait ReaderFactory extends ReaderFactoryPlatform
- trait ReaderFactoryPlatform extends AnyRef
The JVM platform supports File I/O, i.e.
The JVM platform supports File I/O, i.e. opening an audio file using
openRead(f: File)
. - abstract class SampleFormat extends AnyRef
Value Members
- object AudioFile extends ReaderFactory with AudioFilePlatform
The
AudioFile
allows reading and writing of sound files.The
AudioFile
allows reading and writing of sound files. It can operate both on aRandomAccessFile
created from aFile
instance, 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 theimpl
package.Reading and writing data requires a user-buffer which holds de-interleaved floating point data, that is a two dimensional
Array
which holdsDouble
data. A type aliasFrames
is provided for this, and two helper methodsbuffer
: one static to construct an arbitrary user-buffer, one in classAudioFile
which 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 extends AudioFileTypePlatform
- case object BuildInfo extends Product with Serializable
This object was generated by sbt-buildinfo.
- object SampleFormat