museumsvictoria / spatial_audio_server

An audio backend for the multi-layered soundscape of Beyond Perception: Seeing the Unseen, a permanent exhibition at Scienceworks in Melbourne, Australia.
82 stars 14 forks source link

Update to rust 2021 edition #196

Open DivineGod opened 2 years ago

DivineGod commented 2 years ago

Trying to get this project to compile in 2022.

I had some issues with the Cargo.lock file missing which caused some dependencies to not work out of the box so I updated everything to the latest versions.

This upgrade caused a few issues with generic types, especially Vector2 and Point2 which are now using DVec2 from glam.

The main issue in this that I haven't yet worked through is a change in nannou_audio::stream::Shared that means in is now !Sync as it now contains a cpal::Stream which is !Sync. I've currently resorted to commenting out starting the Soundscape update thread and it's just returning None instead of Some(thread) (the instantiation of which is currently commented out so to make the compiler happy)