Changeset 2492

Show
Ignore:
Timestamp:
11/11/08 02:17:48 (8 weeks ago)
Author:
bzr
Message:

Synth drivers are now initialized with init() (the constructor) instead of initialize().

Location:
trunk
Files:
7 modified

Legend:

Unmodified
Added
Removed
  • trunk

    • Property bzr:revision-info
      •  

        old new  
        1 timestamp: 2008-11-10 18:38:09.641000032 +0100 
        2 committer: Peter Vágner <peter.v@datagate.sk> 
         1timestamp: 2008-11-11 13:00:33.200999975 +1100 
         2committer: James Teh <jamie@jantrid.net> 
        33properties:  
        44        branch-nick: main 
         5        rebase-of: jamie@jantrid.net-20081111020033-bkc6t5rofs9rod6x 
    • Property bzr:revision-id:v3-list-QlpoOTFBWSZTWbrL2vUAAB1VgAAQABCAQDrrnqAgAFCgaaGRkxBoTIJ6mmaNRwhndFAoNhZjh_YY4a01fOg1ulgNNC2UrzPdXXEnDpX8XckU4UJC6y9r1A..
      •  

        old new  
        2612612289 peter.v@datagate.sk-20081110172116-imlbd3zcrmpf47nm 
        2622622290 peter.v@datagate.sk-20081110173809-ursuetu2mfiec6t3 
         2632291 jamie@jantrid.net-20081111020033-pzhx3l8q2rvmerlv 
    • Property bzr:file-ids
      •  

        old new  
        1 source/locale/cs/LC_MESSAGES/nvda.po    792@dbe06fc7-9119-0410-a01d-9dbf589ecbba:trunk:source%2Flocale%2Fcs%2FLC_MESSAGES%2Fnvda.po 
        2 source/locale/pt_BR/LC_MESSAGES/nvda.po 514@dbe06fc7-9119-0410-a01d-9dbf589ecbba:trunk:source%2Flocale%2Fpt_BR%2FLC_MESSAGES%2Fnvda.po 
        3 source/locale/sk/LC_MESSAGES/nvda.po    600@dbe06fc7-9119-0410-a01d-9dbf589ecbba:trunk:source%2Flocale%2Fsk%2FLC_MESSAGES%2Fnvda.po 
         1source/synthDriverHandler.py    97@dbe06fc7-9119-0410-a01d-9dbf589ecbba:trunk:source%2FsynthDriverHandler.py 
         2source/synthDrivers/audiologic.py       audiologic.py-20080701031200-sjkq3p9snm96sxhq-2 
         3source/synthDrivers/display.py  1310@dbe06fc7-9119-0410-a01d-9dbf589ecbba:trunk:source%2FsynthDrivers%2Fdisplay.py 
         4source/synthDrivers/espeak.py   612@dbe06fc7-9119-0410-a01d-9dbf589ecbba:trunk:source%2FsynthDrivers%2Fespeak.py 
         5source/synthDrivers/sapi4.py    sapi4.py-20081105062308-fz5mgli5iso5vcdq-2 
         6source/synthDrivers/sapi5.py    94@dbe06fc7-9119-0410-a01d-9dbf589ecbba:trunk:source%2FsynthDrivers%2Fsapi5.py 
  • trunk/source/synthDriverHandler.py

    r2482 r2492  
    4848                name='espeak' 
    4949        try: 
    50                 newSynth=__import__(name,globals(),None,[]).SynthDriver() 
     50                newSynth=__import__(name,globals(),None,[]).SynthDriver 
    5151                if _curSynth and _curSynth.name == newSynth.name: 
    5252                        _curSynth.cancel() 
    5353                        _curSynth.terminate() 
    5454                        _curSynth = None 
    55                 newSynth.initialize() 
     55                newSynth=newSynth() 
    5656                updatedConfig=config.updateSynthConfig(name) 
    5757                if not updatedConfig: 
     
    170170                """ 
    171171 
    172  
    173172        def terminate(self): 
    174173                """Terminate this synth driver. 
  • trunk/source/synthDrivers/audiologic.py

    r2482 r2492  
    3434                        return False 
    3535 
    36         def initialize(self): 
     36        def __init__(self): 
    3737                try: 
    3838                        _audiologic.TtsOpen() 
  • trunk/source/synthDrivers/display.py

    r2255 r2492  
    3535                return True 
    3636 
    37         def initialize(self): 
     37        def __init__(self): 
    3838                self.frame = None 
    3939                try: 
  • trunk/source/synthDrivers/espeak.py

    r2482 r2492  
    2626                return True 
    2727 
    28         def initialize(self): 
     28        def __init__(self): 
    2929                _espeak.initialize() 
    3030                lang=languageHandler.getLanguage() 
  • trunk/source/synthDrivers/sapi4.py

    r2484 r2492  
    5757                return enginesList 
    5858 
    59         def initialize(self): 
     59        def __init__(self): 
    6060                self.lastIndex=None 
    6161                self._bufSink=SynthDriverBufSink(self) 
  • trunk/source/synthDrivers/sapi5.py

    r2482 r2492  
    4040                        return False 
    4141 
    42         def initialize(self): 
     42        def __init__(self): 
    4343                self.tts = comtypes.client.CreateObject(COM_CLASS) 
    4444                self._pitch=50