Skip to content

Instantly share code, notes, and snippets.

View joshbodily's full-sized avatar
👨‍💻
Coding probably

Josh Bodily joshbodily

👨‍💻
Coding probably
View GitHub Profile
@superzazu
superzazu / sdl2_sinewave.c
Created May 29, 2019 07:24
Playing a sine wave with the SDL2
#include <stdio.h>
#include <SDL.h>
int main(void) {
SDL_Init(SDL_INIT_AUDIO);
// the representation of our audio device in SDL:
SDL_AudioDeviceID audio_device;
// opening an audio device: