diff options
author | antoniou79 | 2019-01-01 20:14:24 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-01-06 17:12:02 +0100 |
commit | 234cdf19e5ef1eb6d8baedcd9476fe4354f45368 (patch) | |
tree | c213c17d02ce88a05ff607db6b7f9f92025b50be /devtools/create_bladerunner/subtitles/quotesSpreadsheetCreator/audFileDecode.py | |
parent | 6e62a3e91e26d01ff6793ecdec34d2ed833bd474 (diff) | |
download | scummvm-rg350-234cdf19e5ef1eb6d8baedcd9476fe4354f45368.tar.gz scummvm-rg350-234cdf19e5ef1eb6d8baedcd9476fe4354f45368.tar.bz2 scummvm-rg350-234cdf19e5ef1eb6d8baedcd9476fe4354f45368.zip |
DEVTOOLS: Multilingual support for quoteSpreadsheetCreator
Versions supported are English, German, French, Italian and Spanish
More work would be required for Russian versions to be supported by the spreadsheet creator.
I don't have access to the Russian version that ScummVM currently supports/in the detection table.
Current implementation could be improved (to do away with all the if clauses for the glyph "exceptions")
but this is not high priority.
Diffstat (limited to 'devtools/create_bladerunner/subtitles/quotesSpreadsheetCreator/audFileDecode.py')
-rw-r--r-- | devtools/create_bladerunner/subtitles/quotesSpreadsheetCreator/audFileDecode.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/devtools/create_bladerunner/subtitles/quotesSpreadsheetCreator/audFileDecode.py b/devtools/create_bladerunner/subtitles/quotesSpreadsheetCreator/audFileDecode.py index 1cb28f273e..52ef7231f0 100644 --- a/devtools/create_bladerunner/subtitles/quotesSpreadsheetCreator/audFileDecode.py +++ b/devtools/create_bladerunner/subtitles/quotesSpreadsheetCreator/audFileDecode.py @@ -59,15 +59,15 @@ def aud_decode_ima_chunk(audioBufferIn, index, sample, cs_chunk): audioBufferOut = [] #for i in range(0, len(audioBufferIn)): - # print '%d: %d'%(i, int(audioBufferIn[i])) + # print 'Debug:: %d= %d'%(i, int(audioBufferIn[i])) for sample_index in range (0, cs_chunk): try: code = audioBufferIn[sample_index >> 1] except: code = 0xa9 # dummy workaround because the c code is accessing an out of bounds index sometimes due to this shift here - #print "cs_chunk %d, sample_index %d, shifted %d, code: %d" % (cs_chunk, sample_index, sample_index >> 1, int(audioBufferIn[sample_index >> 1])) - #print "cs_chunk %s, sample_index %s, shifted %s, code: %s" % \ + #print "Debug:: cs_chunk %d, sample_index %d, shifted %d, code= %d" % (cs_chunk, sample_index, sample_index >> 1, int(audioBufferIn[sample_index >> 1])) + #print "Debug:: cs_chunk %s, sample_index %s, shifted %s, code= %s" % \ # (''.join('{:04X}'.format(cs_chunk)), ''.join('{:02X}'.format(sample_index)), ''.join('{:02X}'.format(sample_index >> 1)), ''.join('{:04X}'.format(int(code)))) code = code >> 4 if (sample_index & 1) else code & 0xf step = aud_ima_step_table[index] @@ -88,7 +88,7 @@ def aud_decode_ima_chunk(audioBufferIn, index, sample, cs_chunk): sample = 32767 audioBufferOut.append(ctypes.c_short( sample ).value ) #audioBufferOut.append(sample) # it's not different from above... ctypes.c_short( sample ).value - #print "audio_out[%s]: %s" % (''.join('{:02X}'.format(sample_index)), ''.join('{:02X}'.format(audioBufferOut[sample_index]))); + #print "Debug:: audio_out[%s]= %s" % (''.join('{:02X}'.format(sample_index)), ''.join('{:02X}'.format(audioBufferOut[sample_index]))); index += aud_ima_index_adjust_table[code & 7] if (index < 0): index = 0 @@ -220,11 +220,11 @@ class audFileDecode: if __name__ == '__main__': # main() - print "Running %s as main module" % (my_module_name) + print "Debug:: Running %s as main module" % (my_module_name) decodeInstance = audFileDecode() else: #debug - #print "Running %s imported from another module" % (my_module_name) + #print "Debug:: Running %s imported from another module" % (my_module_name) pass
\ No newline at end of file |