Skip to content

Commit be576a4

Browse files
committed
Hide the (Offline)AudioContext::base() method from the public API
It is not necessary to expose it because the BaseAudioContext methods are available on the object itself, plus it causes issues for the `set_onstatechange` handler, see b0b03a6
1 parent b0b03a6 commit be576a4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/context/base.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ use crate::{node, AudioListener};
2121
#[allow(clippy::module_name_repetitions)]
2222
pub trait BaseAudioContext {
2323
/// Returns the [`BaseAudioContext`] concrete type associated with this `AudioContext`
24+
#[doc(hidden)] // we'd rather not expose the ConcreteBaseAudioContext
2425
fn base(&self) -> &ConcreteBaseAudioContext;
2526

2627
/// Construct a new pair of [`AudioNode`] and [`AudioProcessor`]

0 commit comments

Comments
 (0)