Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,16 @@ impl MixerDeviceSink {

/// When [`MixerDeviceSink`] is dropped a message is logged to stderr or
/// emitted through tracing if the tracing feature is enabled.
/// Deprecated: Use disable_log_on_drop() instead
pub fn log_on_drop(&mut self, enabled: bool) {
self.log_on_drop = enabled;
}
/// When [`MixerDeviceSink`] is dropped a message is logged to stderr or
/// emitted through tracing if the tracing feature is enabled.
pub fn disable_log_on_drop(mut self) -> Self {
self.log_on_drop = false;
self
}
}

impl Drop for MixerDeviceSink {
Expand Down
Loading