Refactored WAV code in to its own file

Signed-off-by: Mahyar Koshkouei <deltabeard@users.noreply.github.com>
This commit is contained in:
Mahyar Koshkouei
2016-12-29 21:15:19 +00:00
parent 42b61ba7f0
commit aa39c2f3fb
7 changed files with 222 additions and 208 deletions

12
source/all.h Normal file
View File

@@ -0,0 +1,12 @@
#include <errno.h>
/* Channel to play music on */
#define CHANNEL 0x08
/* Adds extra debugging text */
#define DEBUG 0
/* Prints more error information */
#define err_print(err) \
do { fprintf(stderr, "\nError %d:%s(): %s %s\n", __LINE__, __func__, \
err, strerror(errno)); } while (0)