equal
deleted
inserted
replaced
49 FILE *fp; |
49 FILE *fp; |
50 |
50 |
51 fp = fopen(fname,mode); |
51 fp = fopen(fname,mode); |
52 if (fp == NULL) |
52 if (fp == NULL) |
53 err_ret("(%s) ERROR - can't open file %s in mode '%s'", prog, fname, mode); |
53 err_ret("(%s) ERROR - can't open file %s in mode '%s'", prog, fname, mode); |
|
54 |
54 return fp; |
55 return fp; |
55 } |
56 } |
56 |
57 |
57 /*TODO make a proper error reporting routine*/ |
58 /*TODO make a proper error reporting routine*/ |
58 ALint AlGetError (const char *str) { |
59 ALint AlGetError (const char *str) { |
69 ALint AlGetError2 (const char *str, int num) { |
70 ALint AlGetError2 (const char *str, int num) { |
70 ALenum error; |
71 ALenum error; |
71 |
72 |
72 error = alGetError(); |
73 error = alGetError(); |
73 if (error != AL_NO_ERROR) { |
74 if (error != AL_NO_ERROR) { |
74 fprintf(stderr, str, error, num); |
75 err_msg(str, prog, num); |
75 return -2; |
76 return error; |
76 } else |
77 } else |
77 return AL_TRUE; |
78 return AL_TRUE; |
78 } |
79 } |
79 |
80 |
80 void *helper_fadein(void *tmp) { |
81 void *helper_fadein(void *tmp) { |