UNPKG

react-native-audio-api

Version:

react-native-audio-api provides system for controlling audio in React Native environment compatible with Web Audio API specification

51 lines (39 loc) 1.02 kB
export type ChannelCountMode = 'max' | 'clamped-max' | 'explicit'; export type ChannelInterpretation = 'speakers' | 'discrete'; export type BiquadFilterType = | 'lowpass' | 'highpass' | 'bandpass' | 'lowshelf' | 'highshelf' | 'peaking' | 'notch' | 'allpass'; export type ContextState = 'running' | 'closed' | `suspended`; export type OscillatorType = | 'sine' | 'square' | 'sawtooth' | 'triangle' | 'custom'; export interface PeriodicWaveConstraints { disableNormalization: boolean; } export interface AudioContextOptions { sampleRate?: number; initSuspended?: boolean; } export interface OfflineAudioContextOptions { numberOfChannels: number; length: number; sampleRate: number; } export interface AudioRecorderOptions { sampleRate: number; bufferLengthInSamples: number; } export type WindowType = 'blackman' | 'hann'; export interface AudioBufferSourceNodeOptions { pitchCorrection: boolean; } export type ProcessorMode = 'processInPlace' | 'processThrough';