Skip to content

Newlib breaks audio (audsrv_init) #777

Description

@Soliforx

This is my first time reporting an issue, please tell me if I am doing something wrong, thanks!
I've been trying to use SDL_mixer for PS2 development but I have encountered an issue where the program will hang when trying to execute SDL_Init(SDL_INIT_AUDIO);. This also seems to happen with older versions of SDL_Mixer.

I think the issue might have originated when a new libc for the PS2 was made as detailed here: https://www.psx-place.com/threads/newlib-porting-challenges.26821/

This new library seems to have broken audsrv_init making it so that it hangs forever (This is also mentioned in the thread, around fifteen messages in)

The audsrv samples are also broken for what seems to be the same reason. (audsrv_init hanging)

Environment:

Most recent ps2dev
Most recent SDL3 compiled with
cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=$PS2DEV/ps2sdk/ps2dev.cmake
cmake --build build

I then moved the .a files to /usr/local/ps2dev/ps2sdk/ports/libs and the include files to
/usr/local/ps2dev/ps2sdk/ports/include

I have included two programs as examples of the issue

They can be compiled with: make all
This generates a .iso file which can be run

AudioTests.zip

One calls the sdl audio initializer and the other calls audsrv_init directly

Thanks for your help in advance

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions