Same volume

artn3r

15-12-2009 22:21:36

I am running ogreoggsound in python-ogre, and i get no 3d sound experience at all.
im on a macbook pro 4.1 with a realtek chip, latest realtek driver (2.39) installed,
windows 7 ult. x64. all sounds have the same volume, they do not fade of with distance,
i think its mono too.

This is my log:

*****************************************
*** --- Initialising OgreOggSound --- ***
*** --- OgreOggSound v1.13 --- ***
*****************************************
*** --- OpenAL version 1.1
*** --- AVAILABLE DEVICES --- ***
*** --- Generic Software
*** --- Choosing: Generic Software (Default device)
*** --- OpenAL Device successfully created
*** --- OpenAL Context successfully created
*** --- SUPPORTED FORMATS
*** --- AL_FORMAT_MONO16 -- Monophonic Sound
*** --- AL_FORMAT_STEREO16 -- Stereo Sound
*** --- AL_FORMAT_QUAD16 -- 4 Channel Sound
*** --- AL_FORMAT_51CHN16 -- 5.1 Surround Sound
*** --- AL_FORMAT_61CHN16 -- 6.1 Surround Sound
*** --- AL_FORMAT_71CHN16 -- 7.1 Surround Sound
*** --- EFX Detected
*** --- 1 Auxiliary Effect Slot(s)
*** --- 1 Auxiliary Send(s) per Source
*** --- EFFECTS SUPPORTED:
*** --- 'Reverb' Support: YES
*** --- 'EAX Reverb' Support: YES
*** --- 'Chorus' Support: NO
*** --- 'Distortion' Support: NO
*** --- 'Echo' Support: NO
*** --- 'Flanger' Support: NO
*** --- 'Frequency shifter' Support: NO
*** --- 'Vocal Morpher' Support: NO
*** --- 'Pitch shifter' Support: NO
*** --- 'Ring modulator' Support: NO
*** --- 'Autowah' Support: NO
*** --- 'Compressor' Support: NO
*** --- 'Equalizer' Support: NO
*** --- FILTERS SUPPORTED:
*** --- 'Low Pass' Support: YES
*** --- 'High Pass' Support: NO
*** --- 'Band Pass' Support: NO
*** --- XRAM NOT Detected
*** --- EAX 2.0 Detected
*** --- Created 100 sources for simultaneous sounds
*** --- Using BOOST threads for streaming
*** --- Recording devices available:
***--- 'Mikrofon (Realtek High Definiti'
***--- 'Realtek Digital Input (Realtek '
*****************************************
*** --- OgreOggSound Initialised --- ***
*****************************************


this is how i create the scene:



self.soundmanager = ogreoggsound.OgreOggSoundManager()
self.listener = SoundListener(self.main, self) #framelistener updates the soundmanager
self.soundmanager.init()
self.main.player.nodeOgre.attachObject(self.soundmanager.getListener()) # my movig player, camera is attached to it

nn = self.main.renderer.sceneManager.createSceneNode("test")
nn.setPosition(ogre.Vector3(0,0,0))
self.newSound = self.soundmanager.createSound("s", "Kalimba.mp3.wav", False, False, True)

if self.newSound:
sNode=nn
sNode.attachObject(self.newSound);

self.newSound.setMaxDistance(300);
self.newSound.setReferenceDistance(100);

self.newSound.play();

return self.newSound


i also tried the ogreal demos, there is no 3d audio too.

please help,
thanks

Christian

stickymango

15-12-2009 23:07:44

Hi,

Certainly confirm that the sound(s) are mono otherwise there will be no attenuation, the reference distance and max distance seem quite high meaning your unlikely to get a lot of attenuation on your sounds unless you change the attenuation mode. By default it will be AL_INVERSE_DISTANCE_CLAMPED which will result in no attenuation being applied beyond the max distance, i.e. the volume at that distance will remain no matter how far away you get. You could try AL_LINEAR_DISTANCE_CLAMPED model and play around with the reference/max distances.

HTH