AudioFileSpec

object AudioFileSpec extends ProductReader[Ex[AudioFileSpec]] with AudioFileSpecPlatform
trait ProductReader[Ex[AudioFileSpec]]
class Object
trait Matchable
class Any

Type members

Classlikes

final case
class Empty() extends Ex[AudioFileSpec]
Companion
object
object Empty extends ProductReader[Empty]
Companion
class
final case
class NumChannels(in: Ex[AudioFileSpec]) extends Ex[Int]
Companion
object
object NumChannels extends ProductReader[NumChannels]
Companion
class
final case
class NumFrames(in: Ex[AudioFileSpec]) extends Ex[Long]
Companion
object
object NumFrames extends ProductReader[NumFrames]
Companion
class
final case
class Read(in: Ex[URI]) extends Ex[Option[AudioFileSpec]]
Companion
object
object Read extends ProductReader[Read]
Companion
class
final case
class SampleRate(in: Ex[AudioFileSpec]) extends Ex[Double]
Companion
object
object SampleRate extends ProductReader[SampleRate]
Companion
class

Inherited classlikes

final protected
class ReadExpanded[T <: Txn[T]](in: IExpr[T, URI], tx0: T)(implicit targets: ITargets[T])
Inherited from
AudioFileSpecPlatform

Value members

Concrete methods

def apply(fileType: Ex[Int], sampleFormat: Ex[Int], numChannels: Ex[Int], sampleRate: Ex[Double], numFrames: Ex[Long]): Ex[AudioFileSpec]

Creates a new AudioFileSpec expression.

Creates a new AudioFileSpec expression.

Value Params
fileType

the file-type can be 0 (AIFF), 1 (Wave), 2 (Wave64), 3 (IRCAM), 4 (NeXT), or 5 (Raw). It defaults to AIFF, and invalid values are also mapped to AIFF.

numFrames

The number of sample frames. Often this value is not used, e.g. when writing to a new file. The default is zero.

sampleFormat

the sample-format can be 0 (16-bit int), 1 (24-bit int), 2 (32-bit float), 3 (32-bit int), 4 (64-bit float), 5 (unsigned 8-bit int), 6 (signed 8-bit int). It defaults to 32-bit float, and invalid values are also mapped to 32-bit float.

def read(in: Ex[URI]): Ex[Option[AudioFileSpec]]
override
def read(in: RefMapIn, key: String, arity: Int, adj: Int): Ex[AudioFileSpec]
Definition Classes
ProductReader