Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Hmm...sorry about the confusing "patches".

Yes, I had previously worked on the same files (hence the telltale "LAULAND" comment!) in https://github.com/macos-powerpc/po...les/0003-Cocoa-adjustments-to-fix-build.patch

I believe that was to get the cocoa driver to work on tiger with SDL 2.0.3, and THIS time it is get the SAME driver to work on 10.5/10.6 with SDL 2.3x.x. (ie "safe" and "test" are for SDL 2.3x.x).

I apologize for any confusion, let me know if I can straighten out what is what.

I'd wanted to work on SDL without any dependencies (so no macports), to isolate any problems with SDL itself, but that makes it very difficult to later, when/if you actually wanted, to pull those changes into powerpc ports.

When I have time I'll install powerpc ports on both leopard and a5 (and possibly tiger too), so I could do actual PRs or plain old patches instead of sending you naked tar files and making you do so much work! (And that way base any changes I propose on actual existing ports).
 
I got SDL3 working without sound on my machines. I need to add context lines to the patches before it will be worth making a PR. Luckily, lite-xl is already working!
@lauland @barracuda156 - is it possible to build SDL with sound support? FFplay is a very nice player if SDL can provide sound support.
For SDL3, I may test the pulseaudio backend at some point to see if it works.
 

Attachments

  • Picture 2.png
    Picture 2.png
    149.9 KB · Views: 4
  • Like
Reactions: barracuda156
I got SDL3 working without sound on my machines. I need to add context lines to the patches before it will be worth making a PR. Luckily, lite-xl is already working!

That’s good to know.

@lauland @barracuda156 - is it possible to build SDL with sound support? FFplay is a very nice player if SDL can provide sound support.

It should be, but someone has to do that. You could try resurrecting an earlier version of coreaudio implementation or see if Copilot can make a patch for the current version (I think it is a single file, not something at complexity level of OpenGL).

For SDL3, I may test the pulseaudio backend at some point to see if it works.

If you get it working, let me know, I was never patient enough to figure out how to use it on any macOS (arm64 included) LOL
 
SDL3! Very very nice! I haven't even tried it, as didn't have anything that needed it, but great to hear you got it working!

Check and make sure the audio dummy driver is enabled, if you don't already have it. It isn't a real driver and returns 0's and nulls for almost everything.

I think an attempt at resurrecting an older coreaudio would be a good idea, similar to what I did with the Cocoa one. Mostly fixing a ton of tiny things to work on newer OS's, but also going from older SDL to newer, and possibly adding dummy funcs for things that didn't exist in old SDL. Looking at that has been on my list, but I've never had the time.

If you start working on an audio driver of any sort, let me know, and I can follow along and may be able to help.
 
@lauland @barracuda156 - is it possible to build SDL with sound support? FFplay is a very nice player if SDL can provide sound support.
I know that thedoc of Leopard Ports has his own versions of SDL1+2. I took a very quick look at them and some of them were older, and/or different versions, than what is in macports and ppc_ports. Sound works in most versions of SDL 2.0.x, but not newer (ie 2.3x.x). I didn't try his newer versions to see if they had working sound yet, but its on my todo list. (If they do, we really should merge in his changes).
 
  • Like
Reactions: barracuda156
I made some progress patching it back to close to how it was in 2.0.6, but I am getting a linking error.
Patches and logs are attached. I also modified two patches that currently modify the relevant files so my patches could apply.
 

Attachments

  • tiger-coreaudiom.txt
    61.2 KB · Views: 1
  • tiger-coreaudio.txt
    2.1 KB · Views: 1
  • 0001-Fixes-for-PowerPC.txt
    2 KB · Views: 1
  • 0002-gcc-build.txt
    4.8 KB · Views: 1
  • sdl2-cocoa-log.txt
    537.1 KB · Views: 1
I just did a build of 2.0.3 with coreaudio, outside of ports, and can see it linking with "AudioUnit", which it looks like you are missing, in addition to CoreAudio and AudioToolbox, which you already have. Looks like you may just need to add it.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.