Skip to content

Instantly share code, notes, and snippets.

@AZiCoDec
AZiCoDec / synthesis.cpp
Created December 18, 2010 22:05
Minimal code for callback function on SDL audio
#include <SDL/SDL.h>
#include <stdio.h>
using namespace std;
void func_callback(void *unused, Uint8 *stream, int len) {
for (int i=0;i<len;i++) {
stream[i] = i;
}