Changeset 1473:27899f7bc2c2

Show
Ignore:
Timestamp:
07/20/10 20:26:50 (7 weeks ago)
Author:
Q <q@…>
Branch:
default
Message:

Updated the sound_lib repo to the new version which I just released with volume support, gave the sound session ability to hold a volume.

Files:
3 modified

Legend:

Unmodified
Added
Removed
  • .hgsubstate

    r1471 r1473  
    220c0728d6c13a2f2d075a3615f7b40fceb8a86254 src/locale 
    332ead1652be4efdb22af9fbad6013a61503863a2c src/session/solona/solona 
    4 75499ae9a28b7c6512b26aae918c562acd56023b src/session/sound/sound_lib 
     4527c00bf8491be636ce15713964cf37b1ecb1b25 src/session/sound/sound_lib 
  • src/Main.defaults

    r1347 r1473  
    2525fullMute=boolean(default=False) 
    2626soundPack=string(default="Standard") 
     27volume=float(default=100.00) 
    2728 
    2829#Export information 
  • src/session/sound/main.py

    r1472 r1473  
    2626   self.output = sound_lib.output.BassSoundOutput() 
    2727   self.input = sound_lib.input.BassSoundInput() 
     28   self.output.volume = config.main['sounds']['volume'] 
    2829  except: 
    2930   self.output = None 
     
    4647  snd.play() 
    4748  self.sounds.append(snd) 
    48  
     49  return snd 
    4950 
    5051 def find_sound_file (self, file): 
     
    5960  if not os.path.exists(sound_file): 
    6061   logging.warning('Unable to find sound file %r' % file) 
    61    raise IOError, "Unable to fine sound file" 
     62   raise IOError, "Unable to find sound file" 
    6263  return sound_file 
    6364 
     
    9798  logging.debug("%s: Cleanup: removed %d sounds." % (self.name, old_len-len(self.sounds))) 
    9899 
     100 def get_volume (self): 
     101  return self.output.volume 
     102 
     103 def set_volume (self, volume): 
     104  config.main['sounds']['volume'] = volume 
     105  self.output.volume = volume 
     106 
     107 volume = property(get_volume, set_volume)