| 1 | #cxx . . $ `<file>/src/pt2_structs.h`/pragma once |
| 2 | |
| 3 | #ifdef _WIN32 |
| 4 | #define WIN32_MEAN_AND_LEAN |
| 5 | #include <windows.h> |
| 6 | #endif |
| 7 | |
| 8 | #include <stdint.h> |
| 9 | #include <stdbool.h> |
| 10 | #include "pt2_header.h"cxx . . $ `<file>/src/pt2_header.h`/ |
| 11 | #include "pt2_hpc.h"cxx . . $ `<file>/src/pt2_hpc.h`/ |
| 12 | #include "pt2_paula.h"cxx . . $ `<file>/src/pt2_paula.h`/ |
| 13 | |
| 14 | // for .WAV sample loading/saving |
| 15 | typedef struct wavHeader_tcxx . . $ wavHeader_t# |
| 16 | { |
| 17 | uint32_tcxx . . $ uint32_t# chunkIDcxx . . $ wavHeader_t#chunkID., chunkSizecxx . . $ wavHeader_t#chunkSize., formatcxx . . $ wavHeader_t#format., subchunk1IDcxx . . $ wavHeader_t#subchunk1ID., subchunk1Sizecxx . . $ wavHeader_t#subchunk1Size.; |
| 18 | uint16_tcxx . . $ uint16_t# audioFormatcxx . . $ wavHeader_t#audioFormat., numChannelscxx . . $ wavHeader_t#numChannels.; |
| 19 | uint32_tcxx . . $ uint32_t# sampleRatecxx . . $ wavHeader_t#sampleRate., byteRatecxx . . $ wavHeader_t#byteRate.; |
| 20 | uint16_tcxx . . $ uint16_t# blockAligncxx . . $ wavHeader_t#blockAlign., bitsPerSamplecxx . . $ wavHeader_t#bitsPerSample.; |
| 21 | uint32_tcxx . . $ uint32_t# subchunk2IDcxx . . $ wavHeader_t#subchunk2ID., subchunk2Sizecxx . . $ wavHeader_t#subchunk2Size.; |
| 22 | } wavHeader_tcxx . . $ wavHeader_t#; |
| 23 | |
| 24 | typedef struct sampleLoop_tcxx . . $ sampleLoop_t# |
| 25 | { |
| 26 | uint32_tcxx . . $ uint32_t# dwIdentifiercxx . . $ sampleLoop_t#dwIdentifier., dwTypecxx . . $ sampleLoop_t#dwType., dwStartcxx . . $ sampleLoop_t#dwStart.; |
| 27 | uint32_tcxx . . $ uint32_t# dwEndcxx . . $ sampleLoop_t#dwEnd., dwFractioncxx . . $ sampleLoop_t#dwFraction., dwPlayCountcxx . . $ sampleLoop_t#dwPlayCount.; |
| 28 | } sampleLoop_tcxx . . $ sampleLoop_t#; |
| 29 | |
| 30 | typedef struct samplerChunk_tcxx . . $ samplerChunk_t# |
| 31 | { |
| 32 | uint32_tcxx . . $ uint32_t# chunkIDcxx . . $ samplerChunk_t#chunkID., chunkSizecxx . . $ samplerChunk_t#chunkSize., dwManufacturercxx . . $ samplerChunk_t#dwManufacturer., dwProductcxx . . $ samplerChunk_t#dwProduct.; |
| 33 | uint32_tcxx . . $ uint32_t# dwSamplePeriodcxx . . $ samplerChunk_t#dwSamplePeriod., dwMIDIUnityNotecxx . . $ samplerChunk_t#dwMIDIUnityNote., wMIDIPitchFractioncxx . . $ samplerChunk_t#wMIDIPitchFraction.; |
| 34 | uint32_tcxx . . $ uint32_t# dwSMPTEFormatcxx . . $ samplerChunk_t#dwSMPTEFormat., dwSMPTEOffsetcxx . . $ samplerChunk_t#dwSMPTEOffset., cSampleLoopscxx . . $ samplerChunk_t#cSampleLoops., cbSamplerDatacxx . . $ samplerChunk_t#cbSamplerData.; |
| 35 | sampleLoop_tcxx . . $ sampleLoop_t# loopcxx . . $ samplerChunk_t#loop.; |
| 36 | } samplerChunk_tcxx . . $ samplerChunk_t#; |
| 37 | |
| 38 | typedef struct mptExtraChunk_tcxx . . $ mptExtraChunk_t# |
| 39 | { |
| 40 | uint32_tcxx . . $ uint32_t# chunkIDcxx . . $ mptExtraChunk_t#chunkID., chunkSizecxx . . $ mptExtraChunk_t#chunkSize., flagscxx . . $ mptExtraChunk_t#flags.; |
| 41 | uint16_tcxx . . $ uint16_t# defaultPancxx . . $ mptExtraChunk_t#defaultPan., defaultVolumecxx . . $ mptExtraChunk_t#defaultVolume., globalVolumecxx . . $ mptExtraChunk_t#globalVolume., reservedcxx . . $ mptExtraChunk_t#reserved.; |
| 42 | uint8_tcxx . . $ uint8_t# vibratoTypecxx . . $ mptExtraChunk_t#vibratoType., vibratoSweepcxx . . $ mptExtraChunk_t#vibratoSweep., vibratoDepthcxx . . $ mptExtraChunk_t#vibratoDepth., vibratoRatecxx . . $ mptExtraChunk_t#vibratoRate.; |
| 43 | } mptExtraChunk_tcxx . . $ mptExtraChunk_t#; |
| 44 | // ----------------------------------------- |
| 45 | |
| 46 | typedef struct note_tcxx . . $ note_t# |
| 47 | { |
| 48 | uint8_tcxx . . $ uint8_t# paramcxx . . $ note_t#param., samplecxx . . $ note_t#sample., commandcxx . . $ note_t#command.; |
| 49 | uint16_tcxx . . $ uint16_t# periodcxx . . $ note_t#period.; |
| 50 | } note_tcxx . . $ note_t#; |
| 51 | |
| 52 | typedef struct moduleHeader_tcxx . . $ moduleHeader_t# |
| 53 | { |
| 54 | char namecxx . . $ moduleHeader_t#name.[20 + 1]; |
| 55 | uint16_tcxx . . $ uint16_t# patternTablecxx . . $ moduleHeader_t#patternTable.[128], songLengthcxx . . $ moduleHeader_t#songLength.; |
| 56 | uint16_tcxx . . $ uint16_t# initialTempocxx . . $ moduleHeader_t#initialTempo.; // used for STK/UST modules after module is loaded |
| 57 | } moduleHeader_tcxx . . $ moduleHeader_t#; |
| 58 | |
| 59 | typedef struct moduleSample_tcxx . . $ moduleSample_t# |
| 60 | { |
| 61 | volatile int8_tcxx . . $ int8_t# *volumeDispcxx . . $ moduleSample_t#volumeDisp.; |
| 62 | volatile int32_tcxx . . $ int32_t# *lengthDispcxx . . $ moduleSample_t#lengthDisp., *loopStartDispcxx . . $ moduleSample_t#loopStartDisp., *loopLengthDispcxx . . $ moduleSample_t#loopLengthDisp.; |
| 63 | char textcxx . . $ moduleSample_t#text.[22 + 1]; |
| 64 | int8_tcxx . . $ int8_t# volumecxx . . $ moduleSample_t#volume.; |
| 65 | uint8_tcxx . . $ uint8_t# fineTunecxx . . $ moduleSample_t#fineTune.; |
| 66 | int32_tcxx . . $ int32_t# offsetcxx . . $ moduleSample_t#offset., lengthcxx . . $ moduleSample_t#length., loopStartcxx . . $ moduleSample_t#loopStart., loopLengthcxx . . $ moduleSample_t#loopLength.; |
| 67 | } moduleSample_tcxx . . $ moduleSample_t#; |
| 68 | |
| 69 | typedef struct moduleChannel_tcxx . . $ moduleChannel_t# |
| 70 | { |
| 71 | int8_tcxx . . $ int8_t# *n_startcxx . . $ moduleChannel_t#n_start., *n_wavestartcxx . . $ moduleChannel_t#n_wavestart., *n_loopstartcxx . . $ moduleChannel_t#n_loopstart., n_volumecxx . . $ moduleChannel_t#n_volume., n_dmabitcxx . . $ moduleChannel_t#n_dmabit.; |
| 72 | int8_tcxx . . $ int8_t# n_toneportdireccxx . . $ moduleChannel_t#n_toneportdirec., n_pattposcxx . . $ moduleChannel_t#n_pattpos., n_loopcountcxx . . $ moduleChannel_t#n_loopcount.; |
| 73 | uint8_tcxx . . $ uint8_t# n_wavecontrolcxx . . $ moduleChannel_t#n_wavecontrol., n_glissfunkcxx . . $ moduleChannel_t#n_glissfunk., n_sampleoffsetcxx . . $ moduleChannel_t#n_sampleoffset., n_toneportspeedcxx . . $ moduleChannel_t#n_toneportspeed.; |
| 74 | uint8_tcxx . . $ uint8_t# n_vibratocmdcxx . . $ moduleChannel_t#n_vibratocmd., n_tremolocmdcxx . . $ moduleChannel_t#n_tremolocmd., n_finetunecxx . . $ moduleChannel_t#n_finetune., n_funkoffsetcxx . . $ moduleChannel_t#n_funkoffset., n_samplenumcxx . . $ moduleChannel_t#n_samplenum.; |
| 75 | uint8_tcxx . . $ uint8_t# n_vibratoposcxx . . $ moduleChannel_t#n_vibratopos., n_tremoloposcxx . . $ moduleChannel_t#n_tremolopos.; |
| 76 | int16_tcxx . . $ int16_t# n_periodcxx . . $ moduleChannel_t#n_period., n_notecxx . . $ moduleChannel_t#n_note., n_wantedperiodcxx . . $ moduleChannel_t#n_wantedperiod.; |
| 77 | uint16_tcxx . . $ uint16_t# n_cmdcxx . . $ moduleChannel_t#n_cmd., n_lengthcxx . . $ moduleChannel_t#n_length., n_replencxx . . $ moduleChannel_t#n_replen.; |
| 78 | uint32_tcxx . . $ uint32_t# n_scopedeltacxx . . $ moduleChannel_t#n_scopedelta., n_chanindexcxx . . $ moduleChannel_t#n_chanindex.; |
| 79 | |
| 80 | // for pt2_sync.c |
| 81 | uint8_tcxx . . $ uint8_t# syncFlagscxx . . $ moduleChannel_t#syncFlags.; |
| 82 | int8_tcxx . . $ int8_t# syncAnalyzerVolumecxx . . $ moduleChannel_t#syncAnalyzerVolume., syncVuVolumecxx . . $ moduleChannel_t#syncVuVolume.; |
| 83 | uint16_tcxx . . $ uint16_t# syncAnalyzerPeriodcxx . . $ moduleChannel_t#syncAnalyzerPeriod.; |
| 84 | } moduleChannel_tcxx . . $ moduleChannel_t#; |
| 85 | |
| 86 | typedef struct module_tcxx . . $ module_t# |
| 87 | { |
| 88 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! loadedcxx . . $ module_t#loaded., modifiedcxx . . $ module_t#modified.; |
| 89 | int8_tcxx . . $ int8_t# *sampleDatacxx . . $ module_t#sampleData.; |
| 90 | |
| 91 | volatile int32_tcxx . . $ int32_t# tickcxx . . $ module_t#tick., speedcxx . . $ module_t#speed.; |
| 92 | |
| 93 | int8_tcxx . . $ int8_t# rowcxx . . $ module_t#row.; // used for different things, so must not be internal to replayer |
| 94 | |
| 95 | moduleHeader_tcxx . . $ moduleHeader_t# headercxx . . $ module_t#header.; |
| 96 | moduleSample_tcxx . . $ moduleSample_t# samplescxx . . $ module_t#samples.[MOD_SAMPLEScxx . . $ `src/pt2_header.h:74:9`!]; |
| 97 | moduleChannel_tcxx . . $ moduleChannel_t# channelscxx . . $ module_t#channels.[PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!]; |
| 98 | note_tcxx . . $ note_t# *patternscxx . . $ module_t#patterns.[MAX_PATTERNScxx . . $ `src/pt2_header.h:75:9`!]; |
| 99 | |
| 100 | // for pattern viewer |
| 101 | int8_tcxx . . $ int8_t# currRowcxx . . $ module_t#currRow.; |
| 102 | int32_tcxx . . $ int32_t# currSpeedcxx . . $ module_t#currSpeed., currBPMcxx . . $ module_t#currBPM.; |
| 103 | uint16_tcxx . . $ uint16_t# currPoscxx . . $ module_t#currPos., currPatterncxx . . $ module_t#currPattern.; |
| 104 | |
| 105 | // for MOD2WAV progress bar |
| 106 | uint32_tcxx . . $ uint32_t# rowsCountercxx . . $ module_t#rowsCounter., rowsInTotalcxx . . $ module_t#rowsInTotal.; |
| 107 | } module_tcxx . . $ module_t#; |
| 108 | |
| 109 | typedef struct keyb_tcxx . . $ keyb_t# |
| 110 | { |
| 111 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! repeatKeycxx . . $ keyb_t#repeatKey., delayKeycxx . . $ keyb_t#delayKey.; |
| 112 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! shiftPressedcxx . . $ keyb_t#shiftPressed., leftCtrlPressedcxx . . $ keyb_t#leftCtrlPressed., leftAltPressedcxx . . $ keyb_t#leftAltPressed.; |
| 113 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! leftCommandPressedcxx . . $ keyb_t#leftCommandPressed., leftAmigaPressedcxx . . $ keyb_t#leftAmigaPressed., keypadEnterPressedcxx . . $ keyb_t#keypadEnterPressed.; |
| 114 | uint8_tcxx . . $ uint8_t# repeatCountercxx . . $ keyb_t#repeatCounter., delayCountercxx . . $ keyb_t#delayCounter.; |
| 115 | uint32_tcxx . . $ uint32_t# repeatFraccxx . . $ keyb_t#repeatFrac.; |
| 116 | SDL_Scancodecxx . . $ SDL_Scancode# lastRepKeycxx . . $ keyb_t#lastRepKey., lastKeycxx . . $ keyb_t#lastKey.; |
| 117 | } keyb_tcxx . . $ keyb_t#; |
| 118 | |
| 119 | typedef struct mouse_tcxx . . $ mouse_t# |
| 120 | { |
| 121 | volatile boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! setPosFlagcxx . . $ mouse_t#setPosFlag., updatePointerColorFlagcxx . . $ mouse_t#updatePointerColorFlag.; |
| 122 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! buttonWaitingcxx . . $ mouse_t#buttonWaiting., leftButtonPressedcxx . . $ mouse_t#leftButtonPressed., rightButtonPressedcxx . . $ mouse_t#rightButtonPressed.; |
| 123 | uint8_tcxx . . $ uint8_t# repeatCountercxx . . $ mouse_t#repeatCounter., buttonWaitCountercxx . . $ mouse_t#buttonWaitCounter.; |
| 124 | int32_tcxx . . $ int32_t# absXcxx . . $ mouse_t#absX., absYcxx . . $ mouse_t#absY., rawXcxx . . $ mouse_t#rawX., rawYcxx . . $ mouse_t#rawY., xcxx . . $ mouse_t#x., ycxx . . $ mouse_t#y., lastMouseXcxx . . $ mouse_t#lastMouseX., setPosXcxx . . $ mouse_t#setPosX., setPosYcxx . . $ mouse_t#setPosY., lastGUIButtoncxx . . $ mouse_t#lastGUIButton., prevXcxx . . $ mouse_t#prevX., prevYcxx . . $ mouse_t#prevY.; |
| 125 | int32_tcxx . . $ int32_t# lastSmpFilterButtoncxx . . $ mouse_t#lastSmpFilterButton., lastSamplingButtoncxx . . $ mouse_t#lastSamplingButton.; |
| 126 | uint32_tcxx . . $ uint32_t# buttonStatecxx . . $ mouse_t#buttonState.; |
| 127 | } mouse_tcxx . . $ mouse_t#; |
| 128 | |
| 129 | typedef struct video_tcxx . . $ video_t# |
| 130 | { |
| 131 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! fullscreencxx . . $ video_t#fullscreen., vsync60HzPresentcxx . . $ video_t#vsync60HzPresent., windowHiddencxx . . $ video_t#windowHidden., useCustomRenderRectcxx . . $ video_t#useCustomRenderRect., debugcxx . . $ video_t#debug.; |
| 132 | int32_tcxx . . $ int32_t# renderXcxx . . $ video_t#renderX., renderYcxx . . $ video_t#renderY., renderWcxx . . $ video_t#renderW., renderHcxx . . $ video_t#renderH., displayWcxx . . $ video_t#displayW., displayHcxx . . $ video_t#displayH., windowWcxx . . $ video_t#windowW., windowHcxx . . $ video_t#windowH.; |
| 133 | uint32_tcxx . . $ uint32_t# mouseCursorUpscaleFactorcxx . . $ video_t#mouseCursorUpscaleFactor., *frameBuffercxx . . $ video_t#frameBuffer., palettecxx . . $ video_t#palette.[PALETTE_NUMcxx . . $ PALETTE_NUM.]; |
| 134 | double dMonitorRefreshRatecxx . . $ video_t#dMonitorRefreshRate., dMouseXMulcxx . . $ video_t#dMouseXMul., dMouseYMulcxx . . $ video_t#dMouseYMul.; |
| 135 | #ifdef _WIN32 |
| 136 | HWND hWnd; |
| 137 | #endif |
| 138 | hpc_tcxx . . $ hpc_t# vblankHpccxx . . $ video_t#vblankHpc.; |
| 139 | SDL_Windowcxx . . $ SDL_Window# *windowcxx . . $ video_t#window.; |
| 140 | SDL_Rectcxx . . $ SDL_Rect# renderRectcxx . . $ video_t#renderRect.; |
| 141 | SDL_Renderercxx . . $ SDL_Renderer# *renderercxx . . $ video_t#renderer.; |
| 142 | SDL_Texturecxx . . $ SDL_Texture# *texturecxx . . $ video_t#texture.; |
| 143 | } video_tcxx . . $ video_t#; |
| 144 | |
| 145 | typedef struct editor_tcxx . . $ editor_t# |
| 146 | { |
| 147 | volatile uint8_tcxx . . $ uint8_t# vuMeterVolumescxx . . $ editor_t#vuMeterVolumes.[PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!], spectrumVolumescxx . . $ editor_t#spectrumVolumes.[SPECTRUM_BAR_NUMcxx . . $ `src/pt2_header.h:79:9`!]; |
| 148 | volatile int8_tcxx . . $ int8_t# *sampleFromDispcxx . . $ editor_t#sampleFromDisp., *sampleToDispcxx . . $ editor_t#sampleToDisp., *currSampleDispcxx . . $ editor_t#currSampleDisp., realVuMeterVolumescxx . . $ editor_t#realVuMeterVolumes.[PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!], mod2WavNumLoopscxx . . $ editor_t#mod2WavNumLoops., mod2WavFadeOutSecondscxx . . $ editor_t#mod2WavFadeOutSeconds.; |
| 149 | volatile boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! songPlayingcxx . . $ editor_t#songPlaying., programRunningcxx . . $ editor_t#programRunning., mod2WavOngoingcxx . . $ editor_t#mod2WavOngoing., pat2SmpOngoingcxx . . $ editor_t#pat2SmpOngoing., mainLoopOngoingcxx . . $ editor_t#mainLoopOngoing., abortMod2Wavcxx . . $ editor_t#abortMod2Wav., mod2WavFadeOutcxx . . $ editor_t#mod2WavFadeOut.; |
| 150 | volatile uint16_tcxx . . $ uint16_t# *quantizeValueDispcxx . . $ editor_t#quantizeValueDisp., *metroSpeedDispcxx . . $ editor_t#metroSpeedDisp., *metroChannelDispcxx . . $ editor_t#metroChannelDisp., *sampleVolDispcxx . . $ editor_t#sampleVolDisp.; |
| 151 | volatile uint16_tcxx . . $ uint16_t# *vol1Dispcxx . . $ editor_t#vol1Disp., *vol2Dispcxx . . $ editor_t#vol2Disp., *currEditPatternDispcxx . . $ editor_t#currEditPatternDisp., *currPosDispcxx . . $ editor_t#currPosDisp., *currPatternDispcxx . . $ editor_t#currPatternDisp.; |
| 152 | volatile uint16_tcxx . . $ uint16_t# *currPosEdPattDispcxx . . $ editor_t#currPosEdPattDisp., *currLengthDispcxx . . $ editor_t#currLengthDisp., *lpCutOffDispcxx . . $ editor_t#lpCutOffDisp., *hpCutOffDispcxx . . $ editor_t#hpCutOffDisp.; |
| 153 | volatile int32_tcxx . . $ int32_t# *samplePosDispcxx . . $ editor_t#samplePosDisp., *chordLengthDispcxx . . $ editor_t#chordLengthDisp.; |
| 154 | |
| 155 | char mixTextcxx . . $ editor_t#mixText.[16+1]; |
| 156 | char *entryNameTmpcxx . . $ editor_t#entryNameTmp., *currPathcxx . . $ editor_t#currPath., *dropTempFileNamecxx . . $ editor_t#dropTempFileName.; |
| 157 | UNICHARcxx . . $ UNICHAR# *fileNameTmpUcxx . . $ editor_t#fileNameTmpU., *currPathUcxx . . $ editor_t#currPathU., *modulesPathUcxx . . $ editor_t#modulesPathU., *samplesPathUcxx . . $ editor_t#samplesPathU.; |
| 158 | |
| 159 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! errorMsgActivecxx . . $ editor_t#errorMsgActive., errorMsgBlockcxx . . $ editor_t#errorMsgBlock., multiFlagcxx . . $ editor_t#multiFlag., metroFlagcxx . . $ editor_t#metroFlag., keypadToggle8CFlagcxx . . $ editor_t#keypadToggle8CFlag., normalizeFiltersFlagcxx . . $ editor_t#normalizeFiltersFlag.; |
| 160 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! sampleAllFlagcxx . . $ editor_t#sampleAllFlag., halveSampleFlagcxx . . $ editor_t#halveSampleFlag., newOldFlagcxx . . $ editor_t#newOldFlag., pat2SmpHQcxx . . $ editor_t#pat2SmpHQ., mixFlagcxx . . $ editor_t#mixFlag.; |
| 161 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! modLoadedcxx . . $ editor_t#modLoaded., autoInsFlagcxx . . $ editor_t#autoInsFlag., repeatKeyFlagcxx . . $ editor_t#repeatKeyFlag., sampleZerocxx . . $ editor_t#sampleZero., tuningToneFlagcxx . . $ editor_t#tuningToneFlag.; |
| 162 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! stepPlayEnabledcxx . . $ editor_t#stepPlayEnabled., stepPlayBackwardscxx . . $ editor_t#stepPlayBackwards., blockBufferFlagcxx . . $ editor_t#blockBufferFlag., blockMarkFlagcxx . . $ editor_t#blockMarkFlag., didQuantizecxx . . $ editor_t#didQuantize.; |
| 163 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! swapChannelFlagcxx . . $ editor_t#swapChannelFlag., configFoundcxx . . $ editor_t#configFound., chordLengthMincxx . . $ editor_t#chordLengthMin., rowVisitTablecxx . . $ editor_t#rowVisitTable.[128 * MOD_ROWScxx . . $ `src/pt2_header.h:73:9`!]; |
| 164 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! mutedcxx . . $ editor_t#muted.[PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!]; |
| 165 | |
| 166 | int8_tcxx . . $ int8_t# smpRedoFinetunescxx . . $ editor_t#smpRedoFinetunes.[MOD_SAMPLEScxx . . $ `src/pt2_header.h:74:9`!], smpRedoVolumescxx . . $ editor_t#smpRedoVolumes.[MOD_SAMPLEScxx . . $ `src/pt2_header.h:74:9`!], multiModeNextcxx . . $ editor_t#multiModeNext.[4], trackPattFlagcxx . . $ editor_t#trackPattFlag.; |
| 167 | int8_tcxx . . $ int8_t# *smpRedoBuffercxx . . $ editor_t#smpRedoBuffer.[MOD_SAMPLEScxx . . $ `src/pt2_header.h:74:9`!], currSamplecxx . . $ editor_t#currSample., recordModecxx . . $ editor_t#recordMode., sampleFromcxx . . $ editor_t#sampleFrom., sampleTocxx . . $ editor_t#sampleTo., autoInsSlotcxx . . $ editor_t#autoInsSlot.; |
| 168 | int8_tcxx . . $ int8_t# hiLowInstrcxx . . $ editor_t#hiLowInstr., note1cxx . . $ editor_t#note1., note2cxx . . $ editor_t#note2., note3cxx . . $ editor_t#note3., note4cxx . . $ editor_t#note4., oldNote1cxx . . $ editor_t#oldNote1., oldNote2cxx . . $ editor_t#oldNote2., oldNote3cxx . . $ editor_t#oldNote3., oldNote4cxx . . $ editor_t#oldNote4., stepPlayLastModecxx . . $ editor_t#stepPlayLastMode.; |
| 169 | uint8_tcxx . . $ uint8_t# playModecxx . . $ editor_t#playMode., currModecxx . . $ editor_t#currMode., tuningChancxx . . $ editor_t#tuningChan., tuningVolcxx . . $ editor_t#tuningVol., errorMsgCountercxx . . $ editor_t#errorMsgCounter., buffFromPoscxx . . $ editor_t#buffFromPos., buffToPoscxx . . $ editor_t#buffToPos.; |
| 170 | uint8_tcxx . . $ uint8_t# blockFromPoscxx . . $ editor_t#blockFromPos., blockToPoscxx . . $ editor_t#blockToPos., timingModecxx . . $ editor_t#timingMode., f6Poscxx . . $ editor_t#f6Pos., f7Poscxx . . $ editor_t#f7Pos., f8Poscxx . . $ editor_t#f8Pos., f9Poscxx . . $ editor_t#f9Pos., f10Poscxx . . $ editor_t#f10Pos., keyOctavecxx . . $ editor_t#keyOctave., pNoteFlagcxx . . $ editor_t#pNoteFlag.; |
| 171 | uint8_tcxx . . $ uint8_t# tuningNotecxx . . $ editor_t#tuningNote., resampleNotecxx . . $ editor_t#resampleNote., initialTempocxx . . $ editor_t#initialTempo., initialSpeedcxx . . $ editor_t#initialSpeed., editMoveAddcxx . . $ editor_t#editMoveAdd.; |
| 172 | |
| 173 | int16_tcxx . . $ int16_t# modulateSpeedcxx . . $ editor_t#modulateSpeed.; |
| 174 | uint16_tcxx . . $ uint16_t# metroSpeedcxx . . $ editor_t#metroSpeed., metroChannelcxx . . $ editor_t#metroChannel., sampleVolcxx . . $ editor_t#sampleVol.; |
| 175 | uint16_tcxx . . $ uint16_t# effectMacroscxx . . $ editor_t#effectMacros.[10], currPlayNotecxx . . $ editor_t#currPlayNote., vol1cxx . . $ editor_t#vol1., vol2cxx . . $ editor_t#vol2., lpCutOffcxx . . $ editor_t#lpCutOff., hpCutOffcxx . . $ editor_t#hpCutOff.; |
| 176 | int32_tcxx . . $ int32_t# smpRedoLoopStartscxx . . $ editor_t#smpRedoLoopStarts.[MOD_SAMPLEScxx . . $ `src/pt2_header.h:74:9`!], smpRedoLoopLengthscxx . . $ editor_t#smpRedoLoopLengths.[MOD_SAMPLEScxx . . $ `src/pt2_header.h:74:9`!], smpRedoLengthscxx . . $ editor_t#smpRedoLengths.[MOD_SAMPLEScxx . . $ `src/pt2_header.h:74:9`!]; |
| 177 | int32_tcxx . . $ int32_t# oldTempocxx . . $ editor_t#oldTempo., markStartOfscxx . . $ editor_t#markStartOfs., markEndOfscxx . . $ editor_t#markEndOfs., samplePoscxx . . $ editor_t#samplePos., chordLengthcxx . . $ editor_t#chordLength.; |
| 178 | uint32_tcxx . . $ uint32_t# playbackSecondscxx . . $ editor_t#playbackSeconds., playbackSecondsFraccxx . . $ editor_t#playbackSecondsFrac.; |
| 179 | |
| 180 | uint32_tcxx . . $ uint32_t# framesPassedcxx . . $ editor_t#framesPassed.; |
| 181 | |
| 182 | note_tcxx . . $ note_t# trackBuffercxx . . $ editor_t#trackBuffer.[MOD_ROWScxx . . $ `src/pt2_header.h:73:9`!], cmdsBuffercxx . . $ editor_t#cmdsBuffer.[MOD_ROWScxx . . $ `src/pt2_header.h:73:9`!], blockBuffercxx . . $ editor_t#blockBuffer.[MOD_ROWScxx . . $ `src/pt2_header.h:73:9`!]; |
| 183 | note_tcxx . . $ note_t# patternBuffercxx . . $ editor_t#patternBuffer.[MOD_ROWScxx . . $ `src/pt2_header.h:73:9`! * PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!], undoBuffercxx . . $ editor_t#undoBuffer.[MOD_ROWScxx . . $ `src/pt2_header.h:73:9`! * PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!]; |
| 184 | SDL_Threadcxx . . $ SDL_Thread# *mod2WavThreadcxx . . $ editor_t#mod2WavThread., *pat2SmpThreadcxx . . $ editor_t#pat2SmpThread.; |
| 185 | |
| 186 | #ifdef __APPLE__ |
| 187 | bool macCmdQIssued; |
| 188 | #endif |
| 189 | } editor_tcxx . . $ editor_t#; |
| 190 | |
| 191 | typedef struct diskop_tcxx . . $ diskop_t# |
| 192 | { |
| 193 | volatile boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! cachedcxx . . $ diskop_t#cached., isFillingcxx . . $ diskop_t#isFilling., forceStopReadingcxx . . $ diskop_t#forceStopReading.; |
| 194 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! modPackFlgcxx . . $ diskop_t#modPackFlg.; |
| 195 | int8_tcxx . . $ int8_t# modecxx . . $ diskop_t#mode., smpSaveTypecxx . . $ diskop_t#smpSaveType.; |
| 196 | int32_tcxx . . $ int32_t# numEntriescxx . . $ diskop_t#numEntries., scrollOffsetcxx . . $ diskop_t#scrollOffset.; |
| 197 | SDL_Keycodecxx . . $ SDL_Keycode# lastEntryJumpKeycxx . . $ diskop_t#lastEntryJumpKey.; |
| 198 | SDL_Threadcxx . . $ SDL_Thread# *fillThreadcxx . . $ diskop_t#fillThread.; |
| 199 | } diskop_tcxx . . $ diskop_t#; |
| 200 | |
| 201 | typedef struct cursor_tcxx . . $ cursor_t# |
| 202 | { |
| 203 | uint8_tcxx . . $ uint8_t# lastPoscxx . . $ cursor_t#lastPos., poscxx . . $ cursor_t#pos., modecxx . . $ cursor_t#mode., channelcxx . . $ cursor_t#channel.; |
| 204 | uint32_tcxx . . $ uint32_t# bgBuffercxx . . $ cursor_t#bgBuffer.[11 * 14]; |
| 205 | } cursor_tcxx . . $ cursor_t#; |
| 206 | |
| 207 | typedef struct ui_tcxx . . $ ui_t# |
| 208 | { |
| 209 | char statusMessagecxx . . $ ui_t#statusMessage.[18], prevStatusMessagecxx . . $ ui_t#prevStatusMessage.[18]; |
| 210 | volatile boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! askBoxShowncxx . . $ ui_t#askBoxShown., throwExitcxx . . $ ui_t#throwExit.; |
| 211 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! editTextFlagcxx . . $ ui_t#editTextFlag., samplerScreenShowncxx . . $ ui_t#samplerScreenShown.; |
| 212 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! leftLoopPinMovingcxx . . $ ui_t#leftLoopPinMoving., rightLoopPinMovingcxx . . $ ui_t#rightLoopPinMoving., changingSmpResamplecxx . . $ ui_t#changingSmpResample., changingDrumPadNotecxx . . $ ui_t#changingDrumPadNote.; |
| 213 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! forceSampleDragcxx . . $ ui_t#forceSampleDrag., forceSampleEditcxx . . $ ui_t#forceSampleEdit.; |
| 214 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! aboutScreenShowncxx . . $ ui_t#aboutScreenShown., posEdScreenShowncxx . . $ ui_t#posEdScreenShown., diskOpScreenShowncxx . . $ ui_t#diskOpScreenShown.; |
| 215 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! samplerVolBoxShowncxx . . $ ui_t#samplerVolBoxShown., samplerFiltersBoxShowncxx . . $ ui_t#samplerFiltersBoxShown., samplingBoxShowncxx . . $ ui_t#samplingBoxShown., editOpScreenShowncxx . . $ ui_t#editOpScreenShown.; |
| 216 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! changingSamplingNotecxx . . $ ui_t#changingSamplingNote.; |
| 217 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! disableVisualizercxx . . $ ui_t#disableVisualizer.; // ask boxes (f.ex. MOD2WAV) |
| 218 | int8_tcxx . . $ int8_t# pointerModecxx . . $ ui_t#pointerMode., editOpScreencxx . . $ ui_t#editOpScreen.; |
| 219 | int8_tcxx . . $ int8_t# visualizerModecxx . . $ ui_t#visualizerMode., previousPointerModecxx . . $ ui_t#previousPointerMode., forceVolDragcxx . . $ ui_t#forceVolDrag., changingChordNotecxx . . $ ui_t#changingChordNote.; |
| 220 | int16_tcxx . . $ int16_t# sampleMarkingPoscxx . . $ ui_t#sampleMarkingPos.; |
| 221 | uint16_tcxx . . $ uint16_t# lastSampleOffsetcxx . . $ ui_t#lastSampleOffset.; |
| 222 | |
| 223 | // render/update flags |
| 224 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! updateStatusTextcxx . . $ ui_t#updateStatusText., updatePatternDatacxx . . $ ui_t#updatePatternData.; |
| 225 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! updateSongNamecxx . . $ ui_t#updateSongName., updateMod2WavDialogcxx . . $ ui_t#updateMod2WavDialog., mod2WavFinishedcxx . . $ ui_t#mod2WavFinished.; |
| 226 | |
| 227 | // edit op. #2 |
| 228 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! updateRecordTextcxx . . $ ui_t#updateRecordText., updateQuantizeTextcxx . . $ ui_t#updateQuantizeText., updateMetro1Textcxx . . $ ui_t#updateMetro1Text., updateMetro2Textcxx . . $ ui_t#updateMetro2Text.; |
| 229 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! updateFromTextcxx . . $ ui_t#updateFromText., updateKeysTextcxx . . $ ui_t#updateKeysText., updateToTextcxx . . $ ui_t#updateToText.; |
| 230 | |
| 231 | // edit op. #3 |
| 232 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! updateMixTextcxx . . $ ui_t#updateMixText., updatePosTextcxx . . $ ui_t#updatePosText., updateModTextcxx . . $ ui_t#updateModText., updateVolTextcxx . . $ ui_t#updateVolText.; |
| 233 | |
| 234 | // edit op. #4 (sample chord editor) |
| 235 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! updateChordLengthTextcxx . . $ ui_t#updateChordLengthText., updateChordNote1Textcxx . . $ ui_t#updateChordNote1Text., updateChordNote2Textcxx . . $ ui_t#updateChordNote2Text.; |
| 236 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! updateChordNote3Textcxx . . $ ui_t#updateChordNote3Text., updateChordNote4Textcxx . . $ ui_t#updateChordNote4Text.; |
| 237 | |
| 238 | // sampler |
| 239 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! updateResampleNotecxx . . $ ui_t#updateResampleNote., updateVolFromTextcxx . . $ ui_t#updateVolFromText., updateVolToTextcxx . . $ ui_t#updateVolToText., updateLPTextcxx . . $ ui_t#updateLPText.; |
| 240 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! updateHPTextcxx . . $ ui_t#updateHPText., updateNormFlagcxx . . $ ui_t#updateNormFlag., update9xxPoscxx . . $ ui_t#update9xxPos.; |
| 241 | |
| 242 | // general |
| 243 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! updateSongPoscxx . . $ ui_t#updateSongPos., updateSongPatterncxx . . $ ui_t#updateSongPattern., updateSongLengthcxx . . $ ui_t#updateSongLength., updateCurrSampleFineTunecxx . . $ ui_t#updateCurrSampleFineTune.; |
| 244 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! updateCurrSampleNumcxx . . $ ui_t#updateCurrSampleNum., updateCurrSampleVolumecxx . . $ ui_t#updateCurrSampleVolume., updateCurrSampleLengthcxx . . $ ui_t#updateCurrSampleLength.; |
| 245 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! updateCurrSampleRepeatcxx . . $ ui_t#updateCurrSampleRepeat., updateCurrSampleReplencxx . . $ ui_t#updateCurrSampleReplen., updateCurrSampleNamecxx . . $ ui_t#updateCurrSampleName.; |
| 246 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! updateSongSizecxx . . $ ui_t#updateSongSize., updateSongTimingcxx . . $ ui_t#updateSongTiming., updateSongBPMcxx . . $ ui_t#updateSongBPM.; |
| 247 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! updateCurrPattTextcxx . . $ ui_t#updateCurrPattText., updateTrackerFlagscxx . . $ ui_t#updateTrackerFlags.; |
| 248 | |
| 249 | // disk op. |
| 250 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! updateLoadModecxx . . $ ui_t#updateLoadMode., updatePackTextcxx . . $ ui_t#updatePackText., updateSaveFormatTextcxx . . $ ui_t#updateSaveFormatText., updateDiskOpPathTextcxx . . $ ui_t#updateDiskOpPathText.; |
| 251 | |
| 252 | // pos ed. |
| 253 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! updatePosEdcxx . . $ ui_t#updatePosEd., updateDiskOpFileListcxx . . $ ui_t#updateDiskOpFileList.; |
| 254 | } ui_tcxx . . $ ui_t#; |
| 255 | |
| 256 | typedef struct textEdit_tcxx . . $ textEdit_t# |
| 257 | { |
| 258 | boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! endReachedcxx . . $ textEdit_t#endReached., scrollablecxx . . $ textEdit_t#scrollable., force32BitNumPtrcxx . . $ textEdit_t#force32BitNumPtr.; |
| 259 | char *textPtrcxx . . $ textEdit_t#textPtr., *textEndPtrcxx . . $ textEdit_t#textEndPtr., *textStartPtrcxx . . $ textEdit_t#textStartPtr.; |
| 260 | int8_tcxx . . $ int8_t# *numPtr8cxx . . $ textEdit_t#numPtr8., tmpDisp8cxx . . $ textEdit_t#tmpDisp8., typecxx . . $ textEdit_t#type.; |
| 261 | uint8_tcxx . . $ uint8_t# numDigitscxx . . $ textEdit_t#numDigits., numBitscxx . . $ textEdit_t#numBits.; |
| 262 | int16_tcxx . . $ int16_t# cursorStartXcxx . . $ textEdit_t#cursorStartX., cursorStartYcxx . . $ textEdit_t#cursorStartY., objectcxx . . $ textEdit_t#object.; |
| 263 | uint16_tcxx . . $ uint16_t# *numPtr16cxx . . $ textEdit_t#numPtr16., tmpDisp16cxx . . $ textEdit_t#tmpDisp16., cursorBlockcxx . . $ textEdit_t#cursorBlock., numBlockscxx . . $ textEdit_t#numBlocks.; |
| 264 | int32_tcxx . . $ int32_t# scrollOffsetcxx . . $ textEdit_t#scrollOffset., *numPtr32cxx . . $ textEdit_t#numPtr32., tmpDisp32cxx . . $ textEdit_t#tmpDisp32.; |
| 265 | } textEdit_tcxx . . $ textEdit_t#; |
| 266 | |
| 267 | extern keyb_tcxx . . $ keyb_t# keybcxx . . $ keyb.; |
| 268 | extern mouse_tcxx . . $ mouse_t# mousecxx . . $ mouse.; |
| 269 | extern video_tcxx . . $ video_t# videocxx . . $ video.; |
| 270 | extern editor_tcxx . . $ editor_t# editorcxx . . $ editor.; |
| 271 | extern diskop_tcxx . . $ diskop_t# diskopcxx . . $ diskop.; |
| 272 | extern cursor_tcxx . . $ cursor_t# cursorcxx . . $ cursor.; |
| 273 | extern ui_tcxx . . $ ui_t# uicxx . . $ ui.; |
| 274 | extern textEdit_tcxx . . $ textEdit_t# textEditcxx . . $ textEdit.; |
| 275 | extern module_tcxx . . $ module_t# *songcxx . . $ song.; // pt2_main.c |