-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathaudio.d.ts
More file actions
15 lines (13 loc) · 1.02 KB
/
Copy pathaudio.d.ts
File metadata and controls
15 lines (13 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Generated from the audio.js manifest (params metadata is the source of truth).
// Regenerate: node tools/dts.js in @audio/compile. Do not edit by hand.
/** Automatable number — scalar, `t => value` fn, or breakpoint curve {t, v} */
type Auto = number | ((t: number) => number) | { t: number[], v: number[] }
/** Per-block param values as delivered by hosts (numbers arrive as 1-length Float32Array) */
type Live = Record<string, Float32Array | string | boolean>
type Ctx = { sampleRate: number, maxBlockSize: number, maxChannels: number, currentTime: number, duration?: number, events?: readonly any[], emit?: (name: string, ...args: any[]) => void, [k: string]: unknown }
type Process = (inputs: Float32Array[][], outputs: Float32Array[][], params: Live) => void
/** Codec plugin 'ape' — extends audio()'s openable formats / save() targets */
export declare const ape: {
codec: 'ape'
decode(bytes: Uint8Array): { channelData: Float32Array[], sampleRate: number } | Promise<{ channelData: Float32Array[], sampleRate: number }>
}