From 1af733ee8662c3c659303d8abd548b2d701201aa Mon Sep 17 00:00:00 2001 From: Petr Gladkikh Date: Fri, 15 Nov 2024 22:41:03 +0400 Subject: [PATCH] Cleanup: fix lint warnings --- src/lib.rs | 2 +- src/stream.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index e6b3cbe..606359e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -7,10 +7,10 @@ //! [`decoder`], etc. or even your own type that implements the [`Source`] trait. //! - Get an output stream handle to a physical device. For example, get a stream to the system's //! default sound device with [`OutputStream::default()`] -//! FIXME Update documentation after the builder is complete //! - Call [`.play_raw(source)`](OutputStream::play_raw) on the output stream handle. //! //! FIXME Update documentation after the builder is complete +//! //! The [`play_raw`](OutputStream::play_raw) function expects the source to produce [`f32`]s, //! which may not be the case. If you get a compilation error, try calling //! [`.convert_samples()`](Source::convert_samples) on the source to fix it. diff --git a/src/stream.rs b/src/stream.rs index 6f00b79..1a912e6 100644 --- a/src/stream.rs +++ b/src/stream.rs @@ -106,7 +106,6 @@ impl OutputStreamBuilder { // In case of supported range limit buffer size to avoid unexpectedly long playback delays. buffer_size: clamp_supported_buffer_size(config.buffer_size(), 1024), sample_format: config.sample_format(), - ..self.config }; self }