Skip to content

Commit

Permalink
support higher samplerates
Browse files Browse the repository at this point in the history
  • Loading branch information
magnetophon committed Apr 20, 2024
1 parent 879fbc5 commit 91f8ef2
Show file tree
Hide file tree
Showing 9 changed files with 5,256 additions and 708 deletions.
273 changes: 149 additions & 124 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@ opt-level = 3
[build-dependencies]
# see: https://github.com/Frando/rust-faust/issues/23
# faust-build = { path = "../rust-faust/faust-build", optional = true }
faust-build = { git = "https://github.com/Frando/rust-faust", optional = true }
faust-build = { git = "https://github.com/Frando/rust-faust", optional = true, branch = "feat_faust_build_set_struct_and_module_names" }
faust-types = { git = "https://github.com/Frando/rust-faust" }
default-boxed = { version = "0.2.0", optional=true }
21 changes: 19 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ use std::{
};

use faust_types::{FaustDsp, UI};
include!("src/dsp.rs");

include!("src/dsp_48k.rs");
include!("src/dsp_96k.rs");
include!("src/dsp_192k.rs");

#[derive(Debug)]
#[allow(unused)]
Expand Down Expand Up @@ -187,8 +190,22 @@ fn main() {
println!("cargo:rerun-if-changed=dsp");

#[cfg(feature = "faust-rebuild")]
faust_build::FaustBuilder::new("dsp/lamb-rs-48k.dsp", "src/dsp_48k.rs")
.set_use_double(true)
.set_module_name("dsp_48k".to_string())
.build();

#[cfg(feature = "faust-rebuild")]
faust_build::FaustBuilder::new("dsp/lamb-rs-96k.dsp", "src/dsp_96k.rs")
.set_use_double(true)
.set_module_name("dsp_96k".to_string())
.build();

faust_build::FaustBuilder::new("dsp/lamb-rs.dsp", "src/dsp.rs")
#[cfg(feature = "faust-rebuild")]
faust_build::FaustBuilder::new("dsp/lamb-rs-192k.dsp", "src/dsp_192k.rs")
.set_use_double(true)
.set_module_name("dsp_192k".to_string())

.build();

}
2 changes: 1 addition & 1 deletion dsp
1 change: 1 addition & 0 deletions shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@ in with nixpkgs;
xorg.xcbutilwm # libxcb-icccm.so

faust
python3
];
}
Loading

0 comments on commit 91f8ef2

Please sign in to comment.