You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A fix was merged around is available in nannou_audio_0.15 but bumping the dependency in this project is akin to falling down the rabbit hole. 😅
This is due to some major changes to the framework, notably the move from sample to dasp.
I had a go porting the effected code directly to dasp, essentially:
[dependencies]
nannou_audio = "0.16.0"
dasp = { version = "0.11.0", features = ["all"] }
And moving from nannou_audio::sample to dasp::rms, dasp::envelope etc.
Not bad 👍, but now on Windows we're no longer retrieving the ASIO host from nannou_audio.
error[E0277]: `std::sync::mpsc::Sender<cpal::host::wasapi::stream::Command>` cannot be shared between threads safely
--> src/lib\soundscape\mod.rs:754:10
And on macOS, we're blocked while compiling coreaudio-sys, which appears to be an open issue.
error[E0277]: `*mut ()` cannot be shared between threads safely
--> src/lib/soundscape/mod.rs:754:10
|
754 | .spawn(move || run(model, rx))
| ^^^^^ `*mut ()` cannot be shared between threads safely
|
= help: within `nannou_audio::stream::Shared<audio::input::Model>`, the trait `Sync` is not implemented for `*mut ()`
= note: required because it appears within the type `PhantomData<*mut ()>`
= note: required because it appears within the type `nannou_audio::cpal::platform::NotSendSyncAcrossAllPlatforms`
= note: required because it appears within the type `nannou_audio::cpal::Stream`
= note: required because it appears within the type `nannou_audio::stream::Shared<audio::input::Model>`
= note: required because of the requirements on the impl of `Send` for `std::sync::Arc<nannou_audio::stream::Shared<audio::input::Model>>`
= note: required because it appears within the type `nannou_audio::Stream<audio::input::Model>`
note: required because it appears within the type `soundscape::Model`
--> src/lib/soundscape/mod.rs:125:12
|
125 | pub struct Model {
| ^^^^^
= note: required because it appears within the type `[closure@src/lib/soundscape/mod.rs:754:16: 754:38]`
Just documenting my unsuccessful attempts to build from master since c8e3208 was merged, updating to nannou_0.13.
Builds are failing on the sample create (since deprecated) as reported on the nannou project. (Tested on Windows an macOS.)
A fix was merged around is available in nannou_audio_0.15 but bumping the dependency in this project is akin to falling down the rabbit hole. 😅
This is due to some major changes to the framework, notably the move from sample to dasp.
I had a go porting the effected code directly to dasp, essentially:
And moving from
nannou_audio::sample
todasp::rms
,dasp::envelope
etc.Not bad 👍, but now on Windows we're no longer retrieving the ASIO host from nannou_audio.
And on macOS, we're blocked while compiling coreaudio-sys, which appears to be an open issue.
Will document any progress -- perhaps a Linux system will still be viable 🤔
The text was updated successfully, but these errors were encountered: