| 1 | #cxx . . $ `<file>/src/pt2_visuals_sync.h`/pragma once |
| 2 | |
| 3 | #include <stdint.h> |
| 4 | #include <stdbool.h> |
| 5 | #include "pt2_paula.h"cxx . . $ `<file>/src/pt2_paula.h`/ |
| 6 | |
| 7 | enumcxx . . $ $anonymous_type_4375ec48dea73b07_0# // flags |
| 8 | { |
| 9 | SET_SCOPE_VOLUMEcxx . . $ SET_SCOPE_VOLUME. = 1, |
| 10 | SET_SCOPE_PERIODcxx . . $ SET_SCOPE_PERIOD. = 2, |
| 11 | SET_SCOPE_DATAcxx . . $ SET_SCOPE_DATA. = 4, |
| 12 | SET_SCOPE_LENGTHcxx . . $ SET_SCOPE_LENGTH. = 8, |
| 13 | TRIGGER_SCOPEcxx . . $ TRIGGER_SCOPE. = 16, |
| 14 | STOP_SCOPEcxx . . $ STOP_SCOPE. = 32, |
| 15 | |
| 16 | UPDATE_VUMETERcxx . . $ UPDATE_VUMETER. = 64, |
| 17 | UPDATE_SPECTRUM_ANALYZERcxx . . $ UPDATE_SPECTRUM_ANALYZER. = 128 |
| 18 | }; |
| 19 | |
| 20 | // 2^n-1 - don't change this! Total queue buffer length is already big. |
| 21 | #define SYNC_QUEUE_LENcxx . . $ `src/pt2_visuals_sync.h:21:9`! 8191 |
| 22 | |
| 23 | #ifdef _MSC_VER |
| 24 | #pragma pack(push) |
| 25 | #pragma pack(1) |
| 26 | #endif |
| 27 | typedef struct syncedChannel_tcxx . . $ syncedChannel_t# // pack to save RAM |
| 28 | { |
| 29 | const int8_tcxx . . $ int8_t# *datacxx . . $ syncedChannel_t#data., *newDatacxx . . $ syncedChannel_t#newData.; |
| 30 | uint16_tcxx . . $ uint16_t# lengthcxx . . $ syncedChannel_t#length., newLengthcxx . . $ syncedChannel_t#newLength.; |
| 31 | uint16_tcxx . . $ uint16_t# periodcxx . . $ syncedChannel_t#period., analyzerPeriodcxx . . $ syncedChannel_t#analyzerPeriod.; |
| 32 | uint8_tcxx . . $ uint8_t# flagscxx . . $ syncedChannel_t#flags.; |
| 33 | uint8_tcxx . . $ uint8_t# volumecxx . . $ syncedChannel_t#volume., analyzerVolumecxx . . $ syncedChannel_t#analyzerVolume., vuVolumecxx . . $ syncedChannel_t#vuVolume.; |
| 34 | } |
| 35 | #ifdef __GNUC__cxx . . $ `<built-in>:8:9`! |
| 36 | __attribute__ ((packed)) |
| 37 | #endif |
| 38 | syncedChannel_tcxx . . $ syncedChannel_t#; |
| 39 | #ifdef _MSC_VER |
| 40 | #pragma pack(pop) |
| 41 | #endif |
| 42 | |
| 43 | typedef struct chSyncData_tcxx . . $ chSyncData_t# |
| 44 | { |
| 45 | syncedChannel_tcxx . . $ syncedChannel_t# channelscxx . . $ chSyncData_t#channels.[PAULA_VOICEScxx . . $ `src/pt2_paula.h:13:9`!]; |
| 46 | uint64_tcxx . . $ uint64_t# timestampcxx . . $ chSyncData_t#timestamp.; |
| 47 | } chSyncData_tcxx . . $ chSyncData_t#; |
| 48 | |
| 49 | typedef struct chSync_tcxx . . $ chSync_t# |
| 50 | { |
| 51 | volatile int32_tcxx . . $ int32_t# readPoscxx . . $ chSync_t#readPos., writePoscxx . . $ chSync_t#writePos.; |
| 52 | chSyncData_tcxx . . $ chSyncData_t# datacxx . . $ chSync_t#data.[SYNC_QUEUE_LENcxx . . $ `src/pt2_visuals_sync.h:21:9`! + 1]; |
| 53 | } chSync_tcxx . . $ chSync_t#; |
| 54 | |
| 55 | void calcAudioLatencyVarscxx . . $ calcAudioLatencyVars(3e454b8ccf442868).(int32_tcxx . . $ int32_t# audioBufferSize, int32_tcxx . . $ int32_t# audioFreq); |
| 56 | void setSyncTickTimeLencxx . . $ setSyncTickTimeLen(588cb903c6b0e163).(uint32_tcxx . . $ uint32_t# timeLenInt, uint64_tcxx . . $ uint64_t# timeLenFrac); |
| 57 | void fillVisualsSyncBuffercxx . . $ fillVisualsSyncBuffer(49f6e7a06ebc5aa8).(void); |
| 58 | void resetChSyncQueuecxx . . $ resetChSyncQueue(49f6e7a06ebc5aa8).(void); |
| 59 | void updateChannelSyncBuffercxx . . $ updateChannelSyncBuffer(49f6e7a06ebc5aa8).(void); |
| 60 | |
| 61 | void setVisualsDMACONcxx . . $ setVisualsDMACON(ed53e3bbd3fa2f69).(uint16_tcxx . . $ uint16_t# bits); |
| 62 | void setVisualsVolumecxx . . $ setVisualsVolume(a7050f1a4cb56049).(int32_tcxx . . $ int32_t# ch, uint16_tcxx . . $ uint16_t# vol); |
| 63 | void setVisualsPeriodcxx . . $ setVisualsPeriod(a7050f1a4cb56049).(int32_tcxx . . $ int32_t# ch, uint16_tcxx . . $ uint16_t# period); |
| 64 | void setVisualsLengthcxx . . $ setVisualsLength(a7050f1a4cb56049).(int32_tcxx . . $ int32_t# ch, uint16_tcxx . . $ uint16_t# len); |
| 65 | void setVisualsDataPtrcxx . . $ setVisualsDataPtr(70eb3de2aab3469c).(int32_tcxx . . $ int32_t# ch, const int8_tcxx . . $ int8_t# *src); |