Skip to content

Build fails with error[E0282] on sample-0.10.0 method #194

Description

@scroix

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:

[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.


Will document any progress -- perhaps a Linux system will still be viable 🤔

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions