OgreAL .ogg fail / library for MOD files

Boder

23-02-2008 19:19:08

When I use
self.bgMusic = self.soundManager.createSound("MenuMusic", "Crystal Caverns.ogg", True)

I get
---------------------------
Microsoft Visual C++ Runtime Library
---------------------------
Runtime Error!

Program: C:\Python25\python.exe



This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.


---------------------------
OK
---------------------------



When I use
self.bgMusic = self.soundManager.createSoundStream("MenuMusic", "Crystal Caverns.ogg", True)

I get
*-*-* Creating OpenAL
OpenAL Devices: NVIDIA(R) nForce(TM) Audio, Generic Hardware, Generic Software,

Choosing: NVIDIA(R) nForce(TM) Audio
Supported Formats
-----------------
EAX 2.0 Detected
OGRE EXCEPTION(3:): OpenAL Error: There is no current context in OgreAL::Sound::
initSource
*-*-* OgreAL Shutdown
*-*-* Releasing OpenAL
*-*-* OGRE Shutdown


Also I want to play module files too. I found PySonic, but the last version is for Python 2.4 (released 2005). Any ideas?

andy

24-02-2008 01:20:36

What version of Python-Ogre are you using? There has been a numbrer of improvements in the base OgreAL library which are in the Python-Ogre 1.2 RC1 release..

As for 'mod' files you can use the plib module for these or convert them to something that OgreAL supports.

Regards
Andy

SiWi

24-02-2008 08:46:44

Maybe OgreAL has an problem with the space in the filename?

Boder

24-02-2008 20:32:48

Maybe OgreAL has an problem with the space in the filename?

Nope, I tried many combinations :D

I'll post if I get it figured out, and try upgrading too. Quite a few of the demos crash for me, is this normal?

Boder

26-02-2008 21:02:22

Upgraded to Python-Ogre 1.2 RC1, now the Basic_sound demo crashes.

"python has encountered a problem and needs to close..."

I'm using Python 2.5.1

*-*-* OgreAL Initialization
MovableObjectFactory for type 'OgreAL_Sound' registered.
MovableObjectFactory for type 'OgreAL_Listener' registered.
*-*-* Creating OpenAL
OpenAL Version: 1.1
Available Devices
-----------------
* NVIDIA(R) nForce(TM) Audio
* Generic Hardware
* Generic Software
Choosing: NVIDIA(R) nForce(TM) Audio
Supported Formats
-----------------
EAX 2.0 Detected


I thought maybe to upgrade OpenAL, but looks like the last release was 2006.

Have you heard about this "OpenAL soft"?

andy

28-02-2008 01:49:22

As it would seem to be a problem between OpenAL and your Nivida sound card (I'm assuming you've updated your drivers to the latest versions) you could force the software implementation:
self.soundmanager=OgreAL.SoundManger("Generic Software")
Andy

TimothyA

01-03-2008 04:12:55

New user coming through, hello :)

Anyhow, as I see you are trying to stream modules/other than .wav formats, let me recommend PyGame's mixer (for simplicity).

It's as simple as this:
import pygame.mixer
pygame.mixer.init()
pygame.mixer.music.load('data/music/module.xm')
pygame.mixer.music.play()


But then again, my needs of audio arn't quite much.