Skip to content

Instantly share code, notes, and snippets.

View abhatem's full-sized avatar
💭
🎶🧑‍💻

abhatem abhatem

💭
🎶🧑‍💻
View GitHub Profile
@abhatem
abhatem / state_engine.py
Created September 7, 2016 23:49 — forked from iminurnamez/state_engine.py
Simple state engine example
import sys
import pygame as pg
class Game(object):
"""
A single instance of this class is responsible for
managing which individual game state is active
and keeping it updated. It also handles many of
pygame's nuts and bolts (managing the event
@abhatem
abhatem / libsndfile_test.cxx
Created January 13, 2016 00:09 — forked from take-cheeze/libsndfile_test.cxx
libsndfile and OpenAL test
/*
TO compile:
ccache g++ -Wall -Wextra -pipe -lsndfile -lopenal -lboost_chrono -lboost_system -lboost_thread libsndfile_test.cxx
TO run:
./a.out $AUDIO_FILE
*/
#include <sndfile.h>