gen2brain / malgo

Mini audio library
The Unlicense
288 stars 49 forks source link

NULL Audio device on MacOS 14.1.1 (23B81) #48

Closed chiefMarlin closed 8 months ago

chiefMarlin commented 9 months ago

Hey, I just noticed that on latest MacOS 14.1.1 (23B81) audio devices no longer show up correctly, only 2 devices available are as below:

enumeration % go run enumeration.go

Playback Devices 0: 00, NULL Playback Device, [ok], formats: [{Format:0 Channels:0 SampleRate:0 Flags:0}]

Capture Devices 0: 00, NULL Capture Device, [ok], formats: [{Format:0 Channels:0 SampleRate:0 Flags:0}]

It used to work fine on MacOS before, but i cant recall what the last working MacOS version was. @gen2brain

chiefMarlin commented 9 months ago

I just tried using latest release of miniaudio from: https://github.com/mackron/miniaudio/releases/tag/0.11.21 And that seems to fix the issue. Please update miniaudio.h when you can or alternatively accept my PR.

mokiat commented 9 months ago

I was just having a look at this library and noticed the same (on Linux it worked fine).

NOTE: I tried it on MacOS 14.1.2 and also on 13.?.? (I upgraded my OS hoping it would fix the issue) but does not work on both.

I tried running with GOARCH=amd64, thinking that it might be due to the arm processor, and hoping that it would be routed through rosetta, but then the code does not compile at all, so not an option it appears.

chiefMarlin commented 9 months ago

I was just having a look at this library and noticed the same (on Linux it worked fine).

NOTE: I tried it on MacOS 14.1.2 and also on 13.?.? (I upgraded my OS hoping it would fix the issue) but does not work on both.

I tried running with GOARCH=amd64, thinking that it might be due to the arm processor, and hoping that it would be routed through rosetta, but then the code does not compile at all, so not an option it appears.

Until the PR gets accepted you can use my fork here: https://github.com/chiefMarlin/malgo Thats what im using at the moment and its working.