mirror of
https://github.com/RustAudio/rodio
synced 2024-12-12 13:12:30 +00:00
Exclude examples from experimental build tests
This commit is contained in:
parent
de53b87a06
commit
bf60185d4b
2 changed files with 8 additions and 15 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -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.
|
||||
|
|
|
@ -23,8 +23,6 @@ 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));
|
||||
|
@ -33,11 +31,6 @@ fn main() {
|
|||
// 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);
|
||||
}
|
||||
|
||||
// After 5 seconds of playback disable automatic gain control using the
|
||||
// shared AtomicBool `agc_enabled`. You could do this from another part
|
||||
|
|
Loading…
Reference in a new issue