Thanks Dave.
Some progress…
I deliberatly didn’t set DYLD_LIBRARY_PATH correctly to see if it does what I would expect and voila:
:display: Unable to set window properties: size=(800, 600)
:audio(error): LoadLibrary() failed, will use NullAudioManager
:audio(error): dlopen(libfmod_audio.dylib, 6): Library not loaded: libfmodex.dylib
Referenced from: /usr/local/panda/lib/libfmod_audio.dylib
Reason: image not found
:audio: NullAudioManager
:audio: NullAudioManager
:audio: NullAudioManager
:audio: NullAudioManager
So with your tip we are trying the correct thing.
Next: Setting DYLD_LIBRARY_PATH to include the path to libfmodex.dylib, I now get:
g5:~/Projects/tester kaweh$ p sound_tester.py
DirectStart: Starting the game.
Warning: DirectNotify: category 'Interval' already exists
:display: loading display module: libpandagl.dylib
Known pipe types:
osxGraphicsPipe
(all display modules loaded.)
:08-17-2006 12:14:12 ShowBase(info): Default graphics pipe is OpenGL (osxGraphicsPipe).
osxGraphicsStateGuardian::osxGraphicsStateGuardian()
:display: Unable to set window properties: size=(800, 600)
0
0
:audio: NullAudioManager
:util(warning): Adjusting global clock's real time by 1.01746 seconds.
:08-17-2006 12:14:13 ShowBase(info): __dev__ == 0
:display: Closing osxGraphicsWindow
osxGraphicsStateGuardian::~osxGraphicsStateGuardian()
Hm… no sound (playing a sound does not do anything, though loading is returning a AudioSound object), it’s still falling back to the NullAudioManager for some reason - though it seems to find the libraries, so I assume these are the funny lines to investigate:
0
0
:audio: NullAudioManager
Any hints what I should check for next?
I tried a FMOD sample to make sure they run correctly and yes, I can hear FMOD in action with their samples on OS X with no problems.
So, I can compile & link and force FMOD usage, but we are still falling back to the NullAudioManager.
My Config.pp says
#define HAVE_FMOD 1
#define FMOD_IPATH /Users/kaweh/Projects/fmod/api/inc
#define FMOD_LPATH /Users/kaweh/Projects/fmod/api/lib
#define FMOD_LIBS fmodex
and this seems to be right for compiling & linking.
PS: the tester is very minimal
import direct.directbase.DirectStart
sound = loader.loadSfx('sound/bluepill.wav')
sound.play()
run()