| 1 | #pragma once |
| 2 | |
| 3 | #include <stdint.h> |
| 4 | #include <stdbool.h> |
| 5 | #include "pt2_header.h" |
| 6 | #include "pt2_structs.h" |
| 7 | |
| 8 | typedef struct scope_t |
| 9 | { |
| 10 | volatile bool active; |
| 11 | const int8_t *data, *newData; |
| 12 | uint8_t volume; |
| 13 | int32_t length, newLength; |
| 14 | int32_t pos; |
| 15 | double dDelta, dPhase; |
| 16 | } scope_t; |
| 17 | |
| 18 | void scopeSetPeriod(int32_t ch, int32_t period); |
| 19 | void scopeTrigger(int32_t ch); |
| 20 | |
| 21 | int32_t getSampleReadPos(int32_t ch); |
| 22 | void updateScopes(void); |
| 23 | void drawScopes(void); |
| 24 | bool initScopes(void); |
| 25 | void stopScope(int32_t ch); |
| 26 | void stopAllScopes(void); |
| 27 | |
| 28 | extern scope_t scope[PAULA_VOICES]; // pt2_scopes.c |