Commit | Line | Data |
---|---|---|
8ee66edd FC |
1 | from lib.gameobject import AudioColleague |
2 | from lib.lib.p3d.audio import P3dSound | |
3 | ||
4 | ||
5 | AudioSound = P3dSound | |
6 | ||
7 | ||
8 | class EngineAudio(AudioColleague): | |
9 | ||
10 | def __init__(self, mediator, vol=1.0): | |
11 | AudioColleague.__init__(self, mediator) | |
12 | self.set_volume(vol) | |
13 | ||
14 | def set_volume(self, vol): self.eng.lib.volume = vol |