dungeon_crawler

diff prototype/src/audio/audio.cc @ 48:aa9e28670ae2

added sound playback, more to do
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 17 Sep 2012 08:40:59 +0300
parents d52711f2b9a1
children c40efa9cf844
line diff
     1.1 --- a/prototype/src/audio/audio.cc	Sun Sep 16 08:16:50 2012 +0300
     1.2 +++ b/prototype/src/audio/audio.cc	Mon Sep 17 08:40:59 2012 +0300
     1.3 @@ -2,15 +2,6 @@
     1.4  #include "openal.h"
     1.5  #include "audio.h"
     1.6  
     1.7 -#define CHECK_ERROR \
     1.8 -    do { \
     1.9 -        unsigned int err = alGetError(); \
    1.10 -        if(err != 0) { \
    1.11 -            fprintf(stderr, "%s:%d: AL error: %#x\n", __FILE__, __LINE__, err); \
    1.12 -            abort(); \
    1.13 -        } \
    1.14 -    } while(0)
    1.15 -
    1.16  static ALCdevice *dev;
    1.17  static ALCcontext *ctx;
    1.18