Skip to content
Merged
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,8 @@ jobs:
# Check examples compile in both modes
- run: cargo check --examples
- run: cargo check --examples --features 64bit

# Verify docs
- run: cargo +nightly doc -Zunstable-options --no-deps --all-features
env:
RUSTDOCFLAGS: --cfg docsrs -D warnings
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
//! represents a sound (streaming or not). In order to play a sound, there are three steps:
//!
//! - Get an OS-Sink handle to a physical device. For example, get a sink to the system's
//! default sound device with [`DeviceSinkBuilder::open_default_stream()`].
//! default sound device with [`DeviceSinkBuilder::open_default_sink()`].
//! - Create an object that represents the streaming sound. It can be a sine wave, a buffer, a
//! [`decoder`], etc. or even your own type that implements the [`Source`] trait.
//! - Add the source to the OS-Sink using [`DeviceSink::mixer()`](OutputStream::mixer)
//! - Add the source to the OS-Sink using [`MixerDeviceSink::mixer()`]
//! on the OS-Sink handle.
//!
//! Here is a complete example of how you would play an audio file:
Expand Down
2 changes: 1 addition & 1 deletion src/speakers.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! A speakers sink
//!
//! An audio *stream* originates at a [Source] and flows to a player. This is a
//! An audio *stream* originates at a [`Source`](crate::Source) and flows to a player. This is a
//! Sink that plays audio over the systems speakers or headphones through an
//! audio output device;
//!
Expand Down
4 changes: 2 additions & 2 deletions src/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const HZ_44100: SampleRate = nz!(44_100);
/// # Note
/// On drop this will print a message to stderr or emit a log msg when tracing is
/// enabled. Though we recommend you do not you can disable that print/log with:
/// [`DeviceSink::log_on_drop(false)`](DeviceSink::log_on_drop).
/// [`MixerDeviceSink::log_on_drop(false)`](MixerDeviceSink::log_on_drop).
/// If the `DeviceSink` is dropped because the program is panicking we do not print
/// or log anything.
///
Expand Down Expand Up @@ -60,7 +60,7 @@ impl MixerDeviceSink {
&self.config
}

/// When [`OS-Sink`] is dropped a message is logged to stderr or
/// When [`MixerDeviceSink`] is dropped a message is logged to stderr or
/// emitted through tracing if the tracing feature is enabled.
pub fn log_on_drop(&mut self, enabled: bool) {
self.log_on_drop = enabled;
Expand Down