mirror of
https://github.com/RustAudio/rodio
synced 2024-12-04 17:29:20 +00:00
Cleanup: fix lint warnings
This commit is contained in:
parent
6a6e94c88e
commit
1af733ee86
2 changed files with 1 additions and 2 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue