DasEtwas / enginesound

Procedural engine sound generator controlled via GUI or CLI
MIT License
309 stars 15 forks source link

Not working on macOS #3

Closed shilch closed 4 years ago

shilch commented 4 years ago

Hello,

really cool project! Unfortunately, I can not get it running on macOS because there are some issues with glium when executing the compiled binary:

Audio driver: CoreAudio
Samplerate: 48000 Hz
Audio output device: [My output device]
Audio output format: F32
thread 'main' panicked at 'assertion failed: backend.is_current()', /Users/username/.cargo/registry/src/github.com-1ecc6299db9ec823/glium-0.23.0/src/context/mod.rs:647:17
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

The error has already been reported on glium GitHub in the past and fixed in glium v0.24.0. When changing the version in the Cargo.toml I get some compile errors due to API changes which I'm unable to fix because I'm not familiar with Rust.

Building with the --no-default-features flag doesn't work because rustc then complains about use of glium in the code.

Do you know of a solution? Would it be hard to update to v0.24.0 of glium?

Thanks in advance!

Friz64 commented 4 years ago

Hey! Thank you for this excellent bug report. I pushed https://github.com/DasEtwas/enginesound/commit/61a8f7573ff74f5c62a8ead9d9019ac4b31d7741, let me know if this resolves your issue

shilch commented 4 years ago

That did the job @Friz64. Danke!

Friz64 commented 4 years ago

Gern geschehen!