Skip to content

Commit

Permalink
Lift Sink::clear into SpatialSink (#548)
Browse files Browse the repository at this point in the history
  • Loading branch information
mweatherley committed Mar 10, 2024
1 parent 77c5c54 commit 01ec33f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/spatial_sink.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,14 @@ impl SpatialSink {
self.sink.is_paused()
}

/// Removes all currently loaded `Source`s from the `SpatialSink` and pauses it.
///
/// See `pause()` for information about pausing a `Sink`.
#[inline]
pub fn clear(&self) {
self.sink.clear();
}

/// Stops the sink by emptying the queue.
#[inline]
pub fn stop(&self) {
Expand Down

0 comments on commit 01ec33f

Please sign in to comment.