I think i've finally pinned down the issue and found a fix. I've been
playing around with the PyAL <https://bitbucket.org/marcusva/py-al> library
lately and found that a combination of the default AL_ROLLOFF_FACTOR and
AL_SOURCE_RELATIVE settings mutes any audio thats 10 pixels/spaces away
from the listener in any direction, hence the lack of audio when trying to
position it in any large 3D space. Another way to do it is to crank the
Volume up really high, but that seems to create a number of distortions on
playback, I've tested it on my rigs and setting the rolloff/relative to 0
allows audio to be heard without any problems. Pyglet does seem to have
bindings for them but there are no settings or higher functions for
changing those parameters so i've applied a quick fix, ideally a function
handler should probably be put in to the Player so users can manually set
the rolloff factor and relative positioning.
pyglet\media\drivers\openal\__init__.py - line 258 - OpenALAudioPlayer()
self._al_source = al.ALuint()
al.alGenSources(1, self._al_source)
al.alSourcef(self._al_source, al.AL_ROLLOFF_FACTOR, 0)
al.alSourcei(self._al_source, al.AL_SOURCE_RELATIVE,0)
--
You received this message because you are subscribed to the Google Groups
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.