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.
81 stars 14 forks source link

Adding project crashes application #127

Closed BlueJayLouche closed 6 years ago

BlueJayLouche commented 6 years ago

After renaming/deleting my project from the /assets/projects folder, trying to add a new project in the GUI results in:

MVPC2962:release acherry$ export RUST_BACKTRACE=1
MVPC2962:release acherry$ ./audio_server 
thread 'main' panicked at 'assertion failed: `(left == right)`
  left: `44100.0`,
 right: `48000.0`: WAV files must have a sample rate of 48000', src/lib/audio/source/wav.rs:54:9
stack backtrace:
   0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
   1: std::sys_common::backtrace::print
   2: std::panicking::default_hook::{{closure}}
   3: std::panicking::default_hook
   4: std::panicking::rust_panic_with_hook
   5: std::panicking::begin_panic
   6: std::panicking::begin_panic_fmt
   7: audio_server::audio::source::wav::Wav::from_path
   8: audio_server::project::Sources::load_missing_sources
   9: audio_server::project::Project::from_config_and_state
  10: audio_server::project::Project::new
  11: audio_server::gui::project_editor::set
  12: audio_server::gui::set_widgets
  13: audio_server::event
  14: <nannou::Builder<M, E>>::run
  15: audio_server::run
  16: std::rt::lang_start::{{closure}}
  17: std::panicking::try::do_call
  18: __rust_maybe_catch_panic
  19: std::rt::lang_start_internal
  20: main
MVPC2962:release acherry$ 
mitchmindtree commented 6 years ago

The key part of the message here is WAV files must have a sample rate of 48000. The reason it was probably working before is that you had an old project which had already loaded and registered the 44.1khz WAVs. These will have to be converted to 48khz to work with all projects from now on.