File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55//!
66//! There is also a convenience function `play` for using that output mixer to
77//! play a single sound.
8+ //!
9+ //! # Buffer size
10+ //! Rodio configures a default buffer size of 100ms latency regardless of the
11+ //! system default. This is to get a good _"out of the box experience"_ on all
12+ //! systems as we found out that the system default is sometimes set completely
13+ //! wrong. That would lead to audio playback breaking apparently randomly on
14+ //! some systems.
15+ //!
16+ //! You can manually specify the buffer size if you want lower latency. For more
17+ //! info see [buffer_size](DeviceSinkBuilder::with_buffer_size).
18+ //!
19+ //! If you find a good way to reliably get a good buffer size on all platforms
20+ //! please contribute your solution to us!
821use crate :: common:: { assert_error_traits, ChannelCount , SampleRate } ;
922use crate :: math:: { nearest_multiple_of_two, nz} ;
1023use crate :: mixer:: { mixer, Mixer } ;
You can’t perform that action at this time.
0 commit comments