Source code for yyagl.engine.audio

from yyagl.gameobject import AudioColleague
from yyagl.lib.p3d.audio import P3dSound


AudioSound = P3dSound


[docs]class EngineAudio(AudioColleague): def __init__(self, mediator, vol=1.0): AudioColleague.__init__(self, mediator) self.set_volume(vol)
[docs] def set_volume(self, vol): self.eng.lib.volume = vol