No sound on XP

Hi All,
I am having trouble get the sound to work on my HP Laptop.
Here is the error:

:audio(error):   LoadLibrary() failed, will use NullAudioManager
:audio(error):     Module not found
:audio: NullAudioManager
:audio: NullAudioManager
:audio: NullAudioManager
:audio: NullAudioManager

I want to to the OpenAL sound. So i downloaded the windows installer for OpenAL and ran it. But it did not help this error.
What file should i look for to correct the “Module not found” error.
Thanks
MM

The problem simply suggests it can’t find the audio library you request.
You don’t need to install OpenAL though, Panda3D includes one!

Can you check whether you got the p3openal (or a similar name) library in your panda3d/lib/ directory? (you can also try switching to fmod using your Config.prc.)

Thanks for the help.

In the bin directory i have:

pandaopenal32.dll
pandawrap_oal.dll

In the lib directory i have:

libp3openal_audio

I turned on fmod with this in my config.

#audio-library-name p3openal_audio
audio-library-name fmod_audio

No help, same error.
I almost seems panda is looking in the wrong place for lib files or something. I check the path statment and it looks ok.

C:\Panda3D-1.4.2\python; C:\Panda3D-1.4.2\bin

This is a fresh load of XP fully updated then i loaded panda.
The audio is “VIA High Definition Audo”, it’s built into the motherboard.
:question:

Hmm, I’m not running windows, but are the library files not located at C:\Panda3D-1.4.2\lib ?

No, under windows, DLLs go in the bin directory.

I don’t know why it would fail to load the library. Try reinstalling panda - maybe something got corrupted.

The directory structure is as it should be.
All the lib files are in c:\pandaxxx\lib
and all the dll and exe files are in c:\pandaxxx\bin

I think i will try one rev back and see if anything changes.

Ok,
Some thing wierd is going on.
I uninstalled ver 1.4.2 and installed 1.3.2
Then ran my program and it had sound!

I then ran it again to check something and there was no sound.

From the command line window you can see the output of both runs.

First run.

C:\p3dc>ppython t1.py
DirectStart: Starting the game.
Warning: DirectNotify: category 'Interval' already exists
Known pipe types:
  wglGraphicsPipe
(3 aux display modules not yet loaded.)
:util(warning): Adjusting global clock's real time by 2.30113 seconds.
:util(warning): Adjusting global clock's real time by -0.593101 seconds.

Second run.

C:\p3dc>ppython t1.py
DirectStart: Starting the game.
:express: Not trusting the high resolution clock.
Warning: DirectNotify: category 'Interval' already exists
:display: loading display module: libpandagl.dll
:display: loading display module: libpandadx9.dll
:display: loading display module: libpandadx8.dll
:display: loading display module: libpandadx7.dll
:display: Unable to load: Module not found
Known pipe types:
  wglGraphicsPipe
  wdxGraphicsPipe9
  wdxGraphicsPipe8
(all display modules loaded.)
:02-18-2008 20:03:03 ShowBase(info): Default graphics pipe is OpenGL (wglGraphic
sPipe).
:display: Unable to set window properties: size=(640, 480) !undecorated open
:audio(error):   LoadLibrary() failed, will use NullAudioManager
:audio(error):     Module not found
:audio: NullAudioManager
:audio: NullAudioManager
:audio: NullAudioManager
:audio: NullAudioManager
:util(warning): Adjusting global clock's real time by 0.794111 seconds.
:02-18-2008 20:03:04 ShowBase(info): __dev__ == 0
:gobj: Loading texture /c/p3dc/mainmenu.png
:pnmtext: Loaded font Nimbus Sans L Regular Condensed
:util(warning): Adjusting global clock's real time by -0.0707081 seconds.
:02-18-2008 20:03:04 ShowBase(info): Got window event: size=(640, 480) title="Pa
nda" !undecorated !fullscreen foreground !minimized open !cursor_hidden
:loader: loading file type module: p3ptloader
:loader: Loading model peewee
:egg2pg: Reading ./peewee.egg
:gobj: Loading texture /c/p3dc/peewee_tex.tga
:egg2pg: Flattened 1 nodes.
:chan: Attempting to bind CharacterJointBundle Armature to AnimBundle Armature,
21 frames at 25 fps
:chan: Bind succeeded, index 0; accessible as animations
:02-18-2008 20:03:07 Actor(info): model contains 1 animations.
:loader: Loading model /c/p3dc/lv1_beta
:egg2pg: Reading /c/p3dc/lv1_beta.egg
:gobj: Loading texture /c/p3dc/house.tga
:gobj: Loading texture /c/p3dc/grass.tga
:egg2pg: Flattened 0 nodes.
:loader: Loading model redballoon
:egg2pg: Reading ./redballoon.egg
:gobj: Loading texture /c/p3dc/redballoon.jpg
:gobj: Automatically rescaling redballoon.jpg from 180 by 180 to 128 by 128
:egg2pg: Flattened 0 nodes.
:display: Closing wglGraphicsWindow

Any ideas?
:question:

I just loaded p3d 1.5 and my sound starting working again. I like to use the frame-rate-meter so i edited the Config.prc file with my favorite free ware editor PSPAD. Then panda would not work at all. I noticed that PSPAD would trash my Config file for no reason. I don’t know why. So if any one else is using PSPAD, watch out. I have a new favorite free ware editor now NOTPAD++.

if you are on windows i swear by crimson editor. crimsoneditor.com/

Cant go wrong with EMACS

Yes, PSPad sucks at some points. It treats .prc extension files very very special. It can still read/write .prc file correctly, but physically the file is encoded, so any other program wouldn’t be able to use the file properly.

Weird.

David