Skip to content

Instantly share code, notes, and snippets.

View CobaltXII's full-sized avatar

CobaltXII CobaltXII

View GitHub Profile
#include <SDL2/SDL.h>
#include <cmath>
// An audio driver. This audio driver will define a callback that will
// generate a waveform which is passed to SDL. SDL passes this waveform to
// the OS, where it is output to a physical device.
struct audio_driver
{