Debian Codegraph @

src/pt2_sampler.h

raw symbols SCIP
1 #pragma once
2
3 #include <stdint.h>
4 #include <stdbool.h>
5 #include "pt2_structs.h"
6
7 typedef struct sampler_t
8 {
9 const int8_t *samStart;
10 int8_t *blankSample, *copyBuf, *sampleUndoCopy;
11 int16_t loopStartPos, loopEndPos;
12 uint16_t dragStart, dragEnd;
13 int32_t samPointWidth, samOffset, samDisplay, samLength, saveMouseX, lastSamPos;
14 int32_t lastMouseX, lastMouseY, tmpLoopStart, tmpLoopLength, copyBufSize;
15 } sampler_t;
16
17 extern sampler_t sampler; // pt2_sampler.c
18
19 void sampleLine(int32_t line_x1, int32_t line_x2, int32_t line_y1, int32_t line_y2);
20
21 void killSample(void);
22 void downSample(void);
23 void upSample(void);
24 void createSampleMarkTable(void);
25 int32_t smpPos2Scr(int32_t pos);
26 int32_t scr2SmpPos(int32_t x);
27 void fixSampleBeep(moduleSample_t *s);
28 void highPassSample(int32_t cutOff);
29 void lowPassSample(int32_t cutOff);
30 void samplerRemoveDcOffset(void);
31 void samplerResample(void);
32 void doMix(void);
33 void boostSample(int32_t sample, bool ignoreMark);
34 void filterSample(int32_t sample, bool ignoreMark);
35 void toggleTuningTone(void);
36 void samplerSamDelete(uint8_t cut);
37 void samplerSamPaste(void);
38 void samplerSamCopy(void);
39 void samplerLoopToggle(void);
40 void samplerBarPressed(bool mouseButtonHeld);
41 void samplerEditSample(bool mouseButtonHeld);
42 void samplerSamplePressed(bool mouseButtonHeld);
43 void volBoxBarPressed(bool mouseButtonHeld);
44 void samplerZoomInMouseWheel(void);
45 void samplerZoomOutMouseWheel(void);
46 void samplerZoomOut2x(void);
47 void sampleMarkerToBeg(void);
48 void sampleMarkerToCenter(void);
49 void sampleMarkerToEnd(void);
50 void samplerPlayWaveform(void);
51 void samplerPlayDisplay(void);
52 void samplerPlayRange(void);
53 void samplerRangeAll(void);
54 void samplerShowRange(void);
55 void samplerShowAll(void);
56 void redoSampleData(int8_t sample);
57 void fillSampleRedoBuffer(int8_t sample);
58 void updateSamplePos(void);
59 void fillSampleFilterUndoBuffer(void);
60 void exitFromSam(void);
61 void samplerScreen(void);
62 void displaySample(void);
63 void redrawSample(void);
64 void renderSampleData(void);
65 bool allocSamplerVars(void);
66 void deAllocSamplerVars(void);
67 void setLoopSprites(void);
68 void drawSamplerLine(void);