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

31 lines (30 loc) 686 B
"use strict"; import AudioNode from "./AudioNode.js"; import AudioBuffer from "./AudioBuffer.js"; export default class ConvolverNode extends AudioNode { constructor(context, node) { super(context, node); this.normalize = node.normalize; } get buffer() { const buffer = this.node.buffer; if (!buffer) { return null; } return new AudioBuffer(buffer); } set buffer(buffer) { if (!buffer) { this.node.buffer = null; return; } this.node.buffer = buffer.buffer; } get normalize() { return this.node.normalize; } set normalize(value) { this.node.normalize = value; } } //# sourceMappingURL=ConvolverNode.js.map