BUGFIX: Fixing issue causing SettingsGUI not to startup on GTA02 - see Ticket http://neo1973-germany.de/ticket/4 - Thanks to Birdack for reporting and submitting the patch!

git-svn-id: http://www.neo1973-germany.de/svn@86 46df4e5c-bc4e-4628-a0fc-830ba316316d
This commit is contained in:
kriss 2008-07-28 15:18:11 +00:00
parent 49839b2e81
commit 934f76224a

View file

@ -95,8 +95,12 @@ class AudioPanel(gtk.VBox):
amix_out = amix_ostream.readline()
amix_out = amix_ostream.readline()
amix_out = amix_ostream.readline()
if amix_out.find("value") >= 0:
return int(amix_out.split('=')[1])
if amix_out.find("INTEGER") >=0:
amix_out = amix_ostream.readline()
if amix_out.find("value") >= 0:
return int((amix_out.split('=')[1]).split(',')[0])
#return int(amix_out.split('=')[1])
return 0;
return 0;
def get_max_volume(self, chan_id):