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

33 lines (32 loc) 1.09 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _AudioNode = _interopRequireDefault(require("./AudioNode.web")); function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } class AnalyserNode extends _AudioNode.default { constructor(context, analyserOptions) { const node = new globalThis.AnalyserNode(context.context, analyserOptions); super(context, node); this.fftSize = node.fftSize; this.frequencyBinCount = node.frequencyBinCount; this.minDecibels = node.minDecibels; this.maxDecibels = node.maxDecibels; this.smoothingTimeConstant = node.smoothingTimeConstant; } getByteFrequencyData(array) { this.node.getByteFrequencyData(array); } getByteTimeDomainData(array) { this.node.getByteTimeDomainData(array); } getFloatFrequencyData(array) { this.node.getFloatFrequencyData(array); } getFloatTimeDomainData(array) { this.node.getFloatTimeDomainData(array); } } exports.default = AnalyserNode; //# sourceMappingURL=AnalyserNode.web.js.map