summaryrefslogblamecommitdiffstats
path: root/src/oscillator.h
blob: 945d1e3a9a9dbd31de3b3f915fdbab9e2ff61ac6 (plain) (tree)





















                                                                                                                               
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