In Blender i can do something like that
Code: Select all
device = aud.device()
factory = bpy.data.sounds['39068__alienbomb_.000'].factory
GameLogic.snd_4 = aud.Factory.buffer(factory)
But in Game Engine the module bpy is not available.
So the question is how to create the factory for file stored as packed resource in Game Engine. Any suggestions?[/code]