InitSound() Fails on Big Sur

Post bugreports for the Mac OSX version here
collectordave
Addict
Addict
Posts: 1242
Joined: Fri Aug 28, 2015 6:10 pm
Location: Portugal

InitSound() Fails on Big Sur

Post by collectordave »

InitSound() always returns 0 when run on Big Sur.

This has been reported in other posts.

Any word of a fix?
Any intelligent fool can make things bigger and more complex. It takes a touch of genius — and a lot of courage to move in the opposite direction.
User avatar
Shardik
Addict
Addict
Posts: 1839
Joined: Thu Apr 21, 2005 2:38 pm
Location: Germany

Re: InitSound() Fails on Big Sur

Post by Shardik »

collectordave wrote: Sat Jul 17, 2021 10:08 am InitSound() always returns 0 when run on Big Sur.
I can confirm this for Big Sur. On High Sierra, Mojave and Catalina the initialization of the sound system is working fine, so the following slightly modified example from the help is working:

Code: Select all

InitSound()
UseOGGSoundDecoder()
LoadSound(0, #PB_Compiler_Home + "Examples/3D/Data/Siren.ogg")
PlaySound(0, #PB_Sound_Loop, 20)
MessageRequester("Info", "Ok to Stop")
FreeSound(0)
collectordave wrote: Sat Jul 17, 2021 10:08 am This has been reported in other posts.
Other post
wilbert wrote:I think the console explains the reason ...
This application, or a library it uses, is using the deprecated Component Manager for hosting Audio Components. This is not supported when rebuilding against the 10.16 or later SDK. Also, this makes the host incompatible with version 3 audio units. Please transition to the API's in AudioComponent.h.
Post Reply