PrismCore / API reference / Previews and cached media

Structure

CachedAudioClip

struct CachedAudioClip

Declared in Sources/PrismCore/Preview/CachedAudioClip.swift · PrismCore 3.5.4

Audio the session has already produced, decoded to mono PCM — what PrismCoreSession.cachedAudio(from:duration:renditionName:) returns.

Initializers

init(startSeconds: Double, sampleRate: Double, samples: [Float])

No documentation comment in the source.

Instance properties

let startSeconds: Double

The first sample's time on the source axis (residentRanges's), with the audio offset in force applied: the clip is what is heard there.

let sampleRate: Double

Always 48 000.

let samples: [Float]

Mono Float32: the non-LFE channels averaged, the LFE dropped.

Type properties

static let maximumDuration: Double

The longest clip one call returns.

Generated from the public symbols of PrismCore 3.5.4. All types