there is no limit for audio files, it's up to you to kill your ram.

This commit is contained in:
Weird Constructor 2021-06-27 07:48:42 +02:00
parent 845df99ab5
commit de15c3cfd7
3 changed files with 6 additions and 4 deletions

View file

@ -36,9 +36,6 @@ impl SampleLibrary {
/// Returns an SAtom reference that you can clone and send directly
/// to the sampling node of your choice.
///
/// The maximum length of the sample is `44100 * 10` samples, which
/// is the equivalent of roughly 1.7 MB.
///
/// Keep in mind that blocking on I/O in the UI might not be desireable.
pub fn load<'a>(&'a mut self, path: &str) -> Result<&'a SAtom, SampleLoadError> {
if self.loaded_samples.get(path).is_some() {

View file

@ -230,6 +230,12 @@ macro_rules! assert_minmax_of_rms {
}
}
#[allow(unused)]
pub fn pset_s(matrix: &mut Matrix, nid: NodeId, parm: &str, set: i64) {
let p = nid.inp_param(parm).unwrap();
matrix.set_param(p, SAtom::setting(set));
}
#[allow(unused)]
pub fn pset_n(matrix: &mut Matrix, nid: NodeId, parm: &str, v_norm: f32) {
let p = nid.inp_param(parm).unwrap();

View file

@ -261,7 +261,6 @@ fn check_node_delay_fb_neg() {
assert_eq!(idxs_big, vec![(441, 100), (882, -100), (1323, 100)]);
}
#[test]
fn check_node_delay_fb_pos() {
let (node_conf, mut node_exec) = new_node_engine();