File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,9 @@ impl From<u8> for AudioContextState {
85
85
86
86
/// Handle of the [`AudioNode`](crate::node::AudioNode) to its associated [`BaseAudioContext`].
87
87
///
88
- /// This allows for communication with the render thread and lifetime management.
88
+ /// Only when implementing the AudioNode trait manually, this struct is of any concern.
89
+ ///
90
+ /// This object allows for communication with the render thread and dynamic lifetime management.
89
91
//
90
92
// The only way to construct this object is by calling [`BaseAudioContext::register`]
91
93
pub struct AudioContextRegistration {
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ impl Default for AudioNodeOptions {
138
138
139
139
/// Config for up/down-mixing of input channels for audio nodes
140
140
///
141
- /// Only when implementing the [`AudioNode`] trait manually, is this struct of any concern. The
141
+ /// Only when implementing the [`AudioNode`] trait manually, this struct is of any concern. The
142
142
/// methods `set_channel_count`, `set_channel_count_mode` and `set_channel_interpretation` from the
143
143
/// audio node interface will use this struct to sync the required info to the render thread.
144
144
///
@@ -284,8 +284,14 @@ impl From<AudioNodeOptions> for ChannelConfig {
284
284
/// Note that the AudioNode is typically constructed together with an `AudioWorkletProcessor`
285
285
/// (the object that lives the render thread). See the [`crate::worklet`] mod.
286
286
pub trait AudioNode {
287
+ /// Handle of the associated [`BaseAudioContext`](crate::context::BaseAudioContext).
288
+ ///
289
+ /// Only when implementing the AudioNode trait manually, this struct is of any concern.
287
290
fn registration ( & self ) -> & AudioContextRegistration ;
288
291
292
+ /// Config for up/down-mixing of input channels for this node.
293
+ ///
294
+ /// Only when implementing the [`AudioNode`] trait manually, this struct is of any concern.
289
295
fn channel_config ( & self ) -> & ChannelConfig ;
290
296
291
297
/// The [`BaseAudioContext`](crate::context::BaseAudioContext) concrete type which owns this
You can’t perform that action at this time.
0 commit comments