Skip to content

sample rate of 48000 in streams #17

@m4b

Description

@m4b

I'm hitting this assert here: https://docs.rs/twang/latest/src/twang/synth.rs.html#54

Is this intended? I have a sample rate of 44100 coming from default cpal config, is it a requirement the sample rate is 48000, if i want to do, e.g.:

        let mut audio = Audio::<Ch32, 1>::with_silence(self.sample_rate.0, nsamples);
        synth.stream(audio.sink());

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions