SndNewChannel error

Member
Posts: 22
Joined: 2005.02
Post: #1
I'm using SndNewChannel to create sound channels in my game. However, some few users report that this won't work on their machine. I've found out they get error -2004 Can'tOpenHandler. Any ideas why? My code looks exactly like the example code Apple provides there.

Switching to OpenAL is one option but then my games rely on OSX 10.4. At the moment I want to support 10.3 also. I would need an installer to install OpenAL on pre-10.4 systems...
Quote this message in a reply
Moderator
Posts: 508
Joined: 2002.09
Post: #2
McSebi Wrote:Switching to OpenAL is one option but then my games rely on OSX 10.4. At the moment I want to support 10.3 also. I would need an installer to install OpenAL on pre-10.4 systems...

You can compile the OpenAL framework so it works with Panther and I think Jaguar aswell. UT2k4 uses OpenAL and it doesn't require 10.4.

I don't recommend you use the Sound Manager in OS X. Use CoreAudio or QuickTime.

"When you dream, there are no rules..."
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #3
The Sound Manager is deprecated. It's incapable of using more speakers than stereo, too, which is a good reason to avoid it.

OpenAL is the right choice. It works back to 10.2.8 -- just build it yourself from source and include it in your application bundle.
Quote this message in a reply
Member
Posts: 22
Joined: 2005.02
Post: #4
OneSadCookie Wrote:OpenAL is the right choice. It works back to 10.2.8 -- just build it yourself from source and include it in your application bundle.

This seems the way to go. Thanks for your comments!
Quote this message in a reply
Post Reply