MCPcopy
hub / github.com/andremichelle/openDAW / sampleRate

Method sampleRate

packages/studio/core/src/EngineFacade.ts:99–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

97 get cpuLoad(): ObservableValue<number> {return this.#cpuLoad}
98 get project(): Project {return this.#worklet.unwrap("No worklet to get project").project}
99 get sampleRate(): number {return this.#worklet.isEmpty() ? 44_100 : this.#worklet.unwrap().context.sampleRate}
100 get preferences(): EnginePreferences {return this.#preferencesFacade}
101 get perfBuffer(): Float32Array {return this.#worklet.mapOr(worklet => worklet.perfBuffer, new Float32Array(0))}
102 get perfIndex(): number {return this.#worklet.mapOr(worklet => worklet.perfIndex, 0)}

Callers

nothing calls this directly

Calls 2

isEmptyMethod · 0.65
unwrapMethod · 0.65

Tested by

no test coverage detected