summaryrefslogtreecommitdiffstats
path: root/src/oscillator.h
blob: 945d1e3a9a9dbd31de3b3f915fdbab9e2ff61ac6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
struct oscillator {
  int type;
  char name[128];
  
}

struct sin_oscillator {
  struct oscillator osc;
  
}




get_next_sample(osc_handle, sample_rate, time?)




pa_callback // sound system callback to get next FRAMES_PER_BUFFER frames
|__ get_frame // creates a single frame -> corresponding to X samples where X is the number of channels (2 for our stereo case)
    |__ make_sample