Skip to content

Commit

Permalink
Fix some PannerNode comments
Browse files Browse the repository at this point in the history
  • Loading branch information
orottier authored Jan 18, 2023
1 parent 5cf1356 commit 1cf57c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/node/panner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ impl Default for PannerOptions {
}
}

/// Assert that the channel count is valid for the StereoPannerNode
/// Assert that the channel count is valid for the PannerNode
/// see <https://webaudio.github.io/web-audio-api/#audionode-channelcount-constraints>
///
/// # Panics
Expand All @@ -140,7 +140,7 @@ fn assert_valid_channel_count(count: usize) {
}
}

/// Assert that the channel count is valid for the StereoPannerNode
/// Assert that the channel count is valid for the PannerNode
/// see <https://webaudio.github.io/web-audio-api/#audionode-channelcountmode-constraints>
///
/// # Panics
Expand Down Expand Up @@ -310,7 +310,7 @@ impl AudioNode for PannerNode {
1
}

// same limitations as for the PannerNode
// same limitations as for the StereoPannerNode
// see: https://webaudio.github.io/web-audio-api/#panner-channel-limitations
fn set_channel_count(&self, count: usize) {
assert_valid_channel_count(count);
Expand Down

0 comments on commit 1cf57c6

Please sign in to comment.