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 nannou 0.10. Includes ASIO support behind `asio` feature flag. #189

Closed mitchmindtree closed 5 years ago

mitchmindtree commented 5 years ago

This updates the audio server from nannou 0.5 to 0.10!

Version 0.10 has not been released just yet, but I'm opening this PR in anticipation as @freesig and I resolve some of the last remaining issues.

ASIO Support

A lot of work has gone into adding support for ASIO to CPAL (the cross-platform audio library partly developed by and used by nannou). See tomaka/cpal#221, tomaka/cpal#292, tomaka/cpal#289 and tomaka/cpal#295 to get an idea of some of the foundational work required to make this possible.

An ASIO setup section has been added to the platform-specific section of the README describing the required setup process on Windows.

Audio Device Selection

Support for selecting specific audio devices has been added. Previously, the server would simply pick the default device on the system. This behaviour was normally enough as operating system audio hosts let you select the current default device in a "System Preferences" audio control panel or something similar. However, seeing as this is not possible with ASIO, it was necessary to add the ability to select an audio device manually.

Functionality has been added to allow for selecting input and output audio devices by name. A section has been added to the README that describes how to do this in detail along with an example.

Other Patches


Closes #184 Closes #52

mitchmindtree commented 5 years ago

Okydoke, now that nannou 0.10 has been published this should be good to go! We can always submit any follow up patches or tweaks in a follow-up PR if necessary :+1: