add support for opus character objection sounds

This commit is contained in:
Mauricio 2020-08-04 06:56:39 -04:00
parent 82cdb793d8
commit 40ed46209c

View File

@ -2003,6 +2003,8 @@ class gui(QtGui.QWidget):
if objecting:
if exists(AOpath + 'characters/' + charname + '/' + objecting + '.wav'):
self.objectsnd = BASS_StreamCreateFile(False, AOpath + 'characters/' + charname + '/' + objecting + '.wav', 0, 0, 0)
elif exists(AOpath + 'characters/' + charname + '/' + objecting + '.opus'):
self.objectsnd = BASS_StreamCreateFile(False, AOpath + 'characters/' + charname + '/' + objecting + '.opus', 0, 0, 0)
else:
self.objectsnd = None
if ini.read_ini_bool(AOpath+"AO2XP.ini", "General", "download sounds"):