RCS file: /cvsroot/scummvm/scummvm/sound/softsynth/mt32/partial.cpp,v
retrieving revision 1.1
diff -u -d -r1.1 partial.cpp
|
|
|
20 | 20 | */ |
21 | 21 | |
22 | 22 | #include <stdlib.h> |
| 23 | #include <assert.h> |
23 | 24 | #include <math.h> |
24 | 25 | #include <string.h> |
25 | 26 | |
… |
… |
|
138 | 139 | play = true; |
139 | 140 | initKeyFollow(poly->freqnum); // Initialises noteVal, filtVal and realVal |
140 | 141 | #if MT32EMU_ACCURATENOTES == 0 |
| 142 | assert(noteLookups); |
141 | 143 | noteLookup = ¬eLookups[noteVal - LOWEST_NOTE]; |
142 | 144 | #else |
143 | 145 | TableInitialiser::initNote(synth, ¬eLookupStorage, noteVal, (float)synth->myProp.sampleRate, synth->masterTune, synth->PCMList, NULL); |
RCS file: /cvsroot/scummvm/scummvm/sound/softsynth/mt32/synth.cpp,v
retrieving revision 1.1
diff -u -d -r1.1 synth.cpp
|
|
|
79 | 79 | isOpen = false; |
80 | 80 | reverbModel = NULL; |
81 | 81 | partialManager = NULL; |
82 | | memset(noteLookups, 0, sizeof(noteLookups)); |
83 | 82 | memset(parts, 0, sizeof(parts)); |
84 | 83 | } |
85 | 84 | |
RCS file: /cvsroot/scummvm/scummvm/sound/softsynth/mt32/tables.cpp,v
retrieving revision 1.1
diff -u -d -r1.1 tables.cpp
|
|
|
68 | 68 | float ResonFactor[31]; |
69 | 69 | float ResonInv[31]; |
70 | 70 | |
71 | | NoteLookup noteLookups[NUM_NOTES]; |
| 71 | NoteLookup *noteLookups = 0; |
| 72 | //NoteLookup noteLookups[NUM_NOTES]; |
72 | 73 | |
73 | 74 | // Begin filter stuff |
74 | 75 | |
… |
… |
|
645 | 646 | } |
646 | 647 | #endif |
647 | 648 | |
| 649 | noteLookups = new NoteLookup[NUM_NOTES]; |
| 650 | memset(noteLookups, 0, sizeof(NoteLookup) * NUM_NOTES); |
| 651 | |
648 | 652 | float progress = 0.0f; |
649 | 653 | bool abort = false; |
650 | 654 | synth->report(ReportType_progressInit, &progress); |
… |
… |
|
700 | 704 | } |
701 | 705 | } |
702 | 706 | } |
| 707 | delete [] noteLookups; |
703 | 708 | initialisedMasterTune = 0.0f; |
704 | 709 | } |
705 | 710 | |
RCS file: /cvsroot/scummvm/scummvm/sound/softsynth/mt32/tables.h,v
retrieving revision 1.1
diff -u -d -r1.1 tables.h
|
|
|
84 | 84 | Bit32u waveformSize[3]; |
85 | 85 | }; |
86 | 86 | |
87 | | extern NoteLookup noteLookups[NUM_NOTES]; |
| 87 | extern NoteLookup *noteLookups; |
| 88 | //extern NoteLookup noteLookups[NUM_NOTES]; |
88 | 89 | |
89 | 90 | class TableInitialiser { |
90 | 91 | static void initMT32ConstantTables(Synth *synth); |