Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error after adding crate #149

Open
cmaughan opened this issue Oct 3, 2021 · 1 comment
Open

Compile error after adding crate #149

cmaughan opened this issue Oct 3, 2021 · 1 comment

Comments

@cmaughan
Copy link

cmaughan commented Oct 3, 2021

After adding this crate, I got:

error[E0282]: type annotations needed
--> /Users/cmaughan/.cargo/registry/src/github.com-1ecc6299db9ec823/sample-0.6.2/src/window.rs:57:41
|
57 | let v = phase.to_float_sample().to_sample() * PI_2;
| ^^^^^^^^^ cannot infer type for type parameter S declared on the associated function to_sample
|
help: consider specifying the type argument in the method call
|
57 | let v = phase.to_float_sample().to_sample::() * PI_2;
| ^^^^^

@Ebert-Hanke
Copy link

We ran into the same problem. It seems like the release on crates.io is outdated. In our case using the git repo solved the problem:

[dependencies]
dsp-chain = {git="https://github.com/RustAudio/dsp-chain.git"}

It would be nice to update the crate on crates.io if this is the cause of the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants