AudioCue

final case
class AudioCue(artifact: Value, spec: AudioFileSpec, offset: Long, gain: Double)

A chunk of an audio file.

Value Params
artifact

the audio file

gain

a linear gain factor

offset

an offset into the file, ''using TimeRef.SampleRate as its base''

spec

the audio file spec, carrying information about duration, sample rate, number of channels

Companion
object
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def fileOffset: Long

A utility method that reports the offset with respect to the file's sample rate. That is, it multiplies offset by the factor this.sampleRate / TimeRef.SampleRate

A utility method that reports the offset with respect to the file's sample rate. That is, it multiplies offset by the factor this.sampleRate / TimeRef.SampleRate

def numChannels: Int

A simple forward to spec.numChannels

A simple forward to spec.numChannels

def numFrames: Long

A simple forward to spec.numFrames

A simple forward to spec.numFrames

def sampleRate: Double

A simple forward to spec.sampleRate

A simple forward to spec.sampleRate

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product