File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ pub trait BaseAudioContext {
25
25
/// Construct a new pair of [`AudioNode`] and [`AudioProcessor`]
26
26
///
27
27
/// The `AudioNode` lives in the user-facing control thread. The Processor is sent to the render thread.
28
+ ///
29
+ /// Check the `examples/worklet.rs` file for example usage of this method.
28
30
fn register <
29
31
T : AudioNode ,
30
32
F : FnOnce ( AudioContextRegistration ) -> ( T , Box < dyn AudioProcessor > ) ,
Original file line number Diff line number Diff line change @@ -105,6 +105,10 @@ pub trait AudioProcessor: Send {
105
105
/// via
106
106
/// [`AudioContextRegistration::post_message`](crate::context::AudioContextRegistration::post_message).
107
107
/// This will not be necessary for most processors.
108
+ ///
109
+ /// This method is just a shim of the full
110
+ /// [`MessagePort`](https://webaudio.github.io/web-audio-api/#dom-audioworkletprocessor-port)
111
+ /// `onmessage` functionality of the AudioWorkletProcessor.
108
112
#[ allow( unused_variables) ]
109
113
fn onmessage ( & mut self , msg : Box < dyn Any + Send + ' static > ) {
110
114
log:: warn!( "Ignoring incoming message" ) ;
You can’t perform that action at this time.
0 commit comments