AudioWorkletProcessor: port property

فهرست فصل‌ها دانلود آرشیوناشر

MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونه‌کد

{{APIRef("Web Audio API")}}

The read-only **port** property of the {{domxref("AudioWorkletProcessor")}} interface returns the associated {{domxref("MessagePort")}}. It can be used to communicate between the processor and the {{domxref("AudioWorkletNode")}} to which it belongs.

توجه: The port at the other end of the channel is available under the {{domxref("AudioWorkletNode.port", "port")}} property of the node.

Value

The {{domxref("MessagePort")}} object that is connecting the AudioWorkletProcessor and the associated AudioWorkletNode.

Examples

See [AudioWorkletNode.port](/en-US/docs/Web/API/AudioWorkletNode/port#examples) for example code.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • Web Audio API
  • Using the Web Audio API