Skip to content

Commit

Permalink
Remove assert_no_alloc
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaacMarovitz committed Apr 30, 2024
1 parent 08c71dd commit 03ed461
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
7 changes: 0 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ edition = "2021"

[dependencies]
winit = { version = "0.29", features = ["serde"] }
assert_no_alloc = "1.1"
cpal = "0.15"
fundsp = { version = "0.17", default-features = false }
clap = { version = "4.5", features = ["derive"] }
Expand Down
3 changes: 1 addition & 2 deletions src/sound/synth.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use assert_no_alloc::*;
use cpal::traits::{DeviceTrait, HostTrait, StreamTrait};
use cpal::{Device, FromSample, SizedSample, StreamConfig};
use fundsp::hacker::*;
Expand Down Expand Up @@ -220,7 +219,7 @@ impl Synth {
c.set_sample_rate(sample_rate);
c.allocate();

let mut next_value = move || assert_no_alloc(|| c.get_stereo());
let mut next_value = move || c.get_stereo();

let err_fn = |err| eprintln!("an error occurred on stream: {}", err);

Expand Down

0 comments on commit 03ed461

Please sign in to comment.