This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// LICENSE | |
// | |
// This software is dual-licensed to the public domain and under the following | |
// license: you are granted a perpetual, irrevocable license to copy, modify, | |
// publish, and distribute this file as you see fit. | |
#include "udpnet.h" | |
#if defined WIN32 | |
typedef int socklen_t; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The Madgarden games WAV player | |
// LICENSE | |
// | |
// This software is dual-licensed to the public domain and under the following | |
// license: you are granted a perpetual, irrevocable license to copy, modify, | |
// publish, and distribute this file as you see fit. | |
/* | |
TODO: Post-process clipping (need 32-bit mix buffer) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Williams Robotron sound synth, adapted to C from https://www.lomont.org/software/misc/robotron/ | |
// LICENSE | |
// | |
// This software is dual-licensed to the public domain and under the following | |
// license: you are granted a perpetual, irrevocable license to copy, modify, | |
// publish, and distribute this file as you see fit. | |
#define CR_START(n) { int *crptr = (n); switch(*crptr) { case 0: | |
#define CR_YIELD_VOID do { *crptr =__LINE__; return; case __LINE__:;}while(0); | |
#define CR_YIELD(x) do { *state =__LINE__; return x; case __LINE__:; }while(0); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdint.h> | |
#include <memory.h> | |
#include "bytebeat_fx.h" | |
#include "mad.h" | |
static int init_ = 0; | |
static unsigned int glitch_t = 0; | |
static float glitch_rate = 8000; | |
static float glitch_volume = 1; | |
static int16_t val16 = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <ctype.h> | |
#include <memory.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
#define CELLS_W 40 | |
#define CELLS_H 20 | |
#define RULES 9 |