Debian Codegraph @

src/pt2_paula.h

raw symbols SCIP
1 #pragma once
2
3 #include <stdint.h>
4 #include <stdbool.h>
5 #include "pt2_header.h"
6
7 enum
8 {
9 MODEL_A1200 = 0,
10 MODEL_A500 = 1
11 };
12
13 #define PAULA_VOICES 4
14 #define PAULA_PAL_CLK AMIGA_PAL_CCK_HZ
15 #define PAL_PAULA_MIN_PERIOD 113
16 #define PAL_PAULA_MIN_SAFE_PERIOD 124
17 #define PAL_PAULA_MAX_HZ (PAULA_PAL_CLK / (double)PAL_PAULA_MIN_PERIOD)
18 #define PAL_PAULA_MAX_SAFE_HZ (PAULA_PAL_CLK / (double)PAL_PAULA_MIN_SAFE_PERIOD)
19
20 void paulaSetup(double dOutputFreq, uint32_t amigaModel);
21 void paulaDisableFilters(void); // disables low-pass & high-pass filters ("LED" filter is kept)
22
23 int8_t *paulaGetNullSamplePtr(void);
24
25 void paulaWriteByte(uint32_t address, uint8_t data8);
26 void paulaWriteWord(uint32_t address, uint16_t data16);
27 void paulaWritePtr(uint32_t address, const int8_t *ptr);
28
29 void clearBlepState(void);
30
31 // output is -4.00 .. 3.97 (can be louder because of high-pass filter)
32 void paulaGenerateSamples(float *fOutL, float *fOutR, int32_t numSamples);