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 19, 2024
1 parent 879fbc5 commit 484f74b
Show file tree
Hide file tree
Showing 7 changed files with 4,558 additions and 36 deletions.
17 changes: 15 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,18 @@ 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)
.build();

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

#[cfg(feature = "faust-rebuild")]
faust_build::FaustBuilder::new("dsp/lamb-rs-192k.dsp", "src/dsp_192k.rs")
.set_use_double(true)
.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 484f74b

Please sign in to comment.