diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 48c9312..4fed37b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,7 +47,7 @@ jobs: if: matrix.toolchain == 'stable' && matrix.os == 'ubuntu-latest' - run: cargo test --all-targets - - run: cargo test --all-targets --features=experimental + - run: cargo test --lib --bins --tests --benches --features=experimental - run: cargo test --all-targets --features=symphonia-all # `cargo test` does not check benchmarks and `cargo test --all-targets` excludes # documentation tests. Therefore, we need an additional docs test command here. diff --git a/examples/automatic_gain_control.rs b/examples/automatic_gain_control.rs index 78ae21b..6bf78d5 100644 --- a/examples/automatic_gain_control.rs +++ b/examples/automatic_gain_control.rs @@ -23,21 +23,14 @@ fn main() { // or we would lose it when we move it into the periodic access. let agc_enabled = Arc::new(AtomicBool::new(true)); - #[cfg(not(feature = "experimental"))] - { - let agc_enabled_clone = agc_enabled.clone(); - let controlled = agc_source.periodic_access(Duration::from_millis(5), move |agc_source| { - agc_source.set_enabled(agc_enabled_clone.load(Ordering::Relaxed)); - }); + let agc_enabled_clone = agc_enabled.clone(); + let controlled = agc_source.periodic_access(Duration::from_millis(5), move |agc_source| { + agc_source.set_enabled(agc_enabled_clone.load(Ordering::Relaxed)); + }); - // Add the source now equipped with automatic gain control and controlled via - // periodic_access to the sink for playback. - sink.append(controlled); - } - #[cfg(feature = "experimental")] - { - sink.append(agc_source); - } + // Add the source now equipped with automatic gain control and controlled via + // periodic_access to the sink for playback. + sink.append(controlled); // After 5 seconds of playback disable automatic gain control using the // shared AtomicBool `agc_enabled`. You could do this from another part