QB64Team / qb64

BASIC for the modern era.
https://www.qb64.org
Other
667 stars 94 forks source link

AudioUnitInitialize failed #87

Open pforpond opened 3 years ago

pforpond commented 3 years ago

Describe the bug Compiled applications that make use of audio crash whilst the audio is loading (I think?). Terminal displays AL lib: ca_open_playback: AudioUnitInitialize failed and the application exits with code 111. This does not effect builds compiled under previous versions of macOS or applications that do not use audio.

QB64 info (please complete the following information):

To Reproduce Steps to reproduce the behaviour: Attempt to run an application that uses audio that was compiled with macOS Big Sur.

Expected behavior Application stops running. AL lib: ca_open_playback: AudioUnitInitialize failed displays in terminal.

Screenshots

Untitled
FellippeHeitor commented 3 years ago

Now that shall prove challenging and might take a tad longer to find a fix to. My Mac mini won't run Big Sur.

pforpond commented 3 years ago

My Mac mini won't run Big Sur.

That is a shame. I'll be happy to test / try anything you need me to, if ever needed.

FellippeHeitor commented 3 years ago

You're on the latest Xcode command line tools too, I assume?

pforpond commented 3 years ago

Yes I made sure to update those before attempting anything with QB64. I've managed to make the mistake of overlooking the Xcode updates many times previously, feels good to have remembered it for once.

FellippeHeitor commented 3 years ago

Did you carry QB64's folder from before you updated to Big sur or is it a fresh install? You might wanna purge all precompiled content too: ./internal/c/purge_all_precompiled_content_osx.command (might need to chmod + x it first) - then rerun the setup script

pforpond commented 3 years ago

I used a fresh install of QB64. Just tried the purge just incase it helped but it doesn't seem to have had any effect.

FellippeHeitor commented 3 years ago

We're looking to replace OpenAL - that should fix it. No timeline yet though.

FellippeHeitor commented 2 years ago

@pforpond hey there. We've pushed a change recently that won't necessarily fix audio on Big Sur but may allow programs to at least not crash at start. Would you mind giving the latest build a try?

pforpond commented 2 years ago

I tried out the latest development build off the qb64 website. It seems to be working as you expected, no audio but no crashing either. :)

If it helps anyone, a workaround I've been using is to compile in a Catalina virtual machine. For some reason programs compiled in Catalina run with both audio and no crashes in Big Sur.

FellippeHeitor commented 2 years ago

Thank you for letting me know! Yeah, it's true that binaries compiled in Catalina will work ok in Big Sur.

Thanks, Apple. 😂

Lightwave234 commented 10 months ago

I keep running into this error whenever I try using the "Play" keyword, I tried to install the ALSA tools, but it continues to display this error, and just know I'm using the Ubuntu subsystem for Windows

ALSA lib confmisc.c:855:(parse_card) cannot find card '0' ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5701:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM default AL lib: alsa_open_playback: Could not open playback device 'default': No such file or directory

a740g commented 10 months ago

I keep running into this error whenever I try using the "Play" keyword, I tried to install the ALSA tools, but it continues to display this error, and just know I'm using the Ubuntu subsystem for Windows

ALSA lib confmisc.c:855:(parse_card) cannot find card '0' ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5701:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM default AL lib: alsa_open_playback: Could not open playback device 'default': No such file or directory

This repository has had no updates for more than a year and is, for all intents and purposes, abandoned. Instead, see a more up-to-date fork of this project at https://github.com/QB64-Phoenix-Edition/QB64pe.

The QB64-PE project uses a different audio backend that works much better with recent macOS versions.

Lightwave234 commented 10 months ago

Ok, Thank you a740g