freesig / cpal

Audio player in pure Rust
0 stars 0 forks source link

ASIO Downloader & "Installer" #2

Closed mitchmindtree closed 6 years ago

mitchmindtree commented 6 years ago

A simple rust crate that can be used in build scripts to automatically download and "install" the audio SDK into a reasonable location.

  1. Downloads the SDK zip from steinberg.
  2. Unzip the SDK.
  3. Copy unzipped directory into ~/.asio/. Use dirs crate to get the home directory in a reliable way.
  4. Check to see if CPAL_ASIO_DIR is set. If not, set it to ~/.asio/.
mitchmindtree commented 6 years ago

This has been implemented here but lacks the final step of setting the CPAL_ASIO_DIR env var. Not sure if there is a reliable cross-platform way of setting this in the user's configuration files - it might be best if we let the CPAL windows ASIO buildscript check for this folder and then set it in the case that it isn't already set.

freesig commented 6 years ago

Yeh in the build script if it's not set we could default to checking home/.asio/ Then is that fails we could print a nice error explaining how to install it with this crate