convenient way to combine errors

This commit is contained in:
Joshua Reisenauer 2016-06-02 02:31:25 -07:00
parent af1eb5453a
commit cf2975d062
2 changed files with 31 additions and 31 deletions

View File

@ -48,21 +48,21 @@
#endif
typedef enum {
ERROR_RAW_CONTEXT_CREATION = -20,
ERROR_XM_CONTEXT_CREATION,
ERROR_MOD_CONTEXT_CREATION,
ERROR_MIX_CHANNEL_CREATION,
ERROR_MUSIC_CHANNEL_CREATION,
ERROR_LOADING_XM,
ERROR_LOADING_MOD,
ERROR_LOADING_WAV,
ERROR_LOADING_OGG,
ERROR_OUT_OF_MIX_CHANNELS,
ERROR_EXTENSION_NOT_RECOGNIZED,
ERROR_UNABLE_TO_OPEN_RRES_FILE,
ERROR_INVALID_RRES_FILE,
ERROR_INVALID_RRES_RESOURCE,
ERROR_UNINITIALIZED_CHANNELS
ERROR_RAW_CONTEXT_CREATION = 1,
ERROR_XM_CONTEXT_CREATION = 2,
ERROR_MOD_CONTEXT_CREATION = 4,
ERROR_MIX_CHANNEL_CREATION = 8,
ERROR_MUSIC_CHANNEL_CREATION = 16,
ERROR_LOADING_XM = 32,
ERROR_LOADING_MOD = 64,
ERROR_LOADING_WAV = 128,
ERROR_LOADING_OGG = 256,
ERROR_OUT_OF_MIX_CHANNELS = 512,
ERROR_EXTENSION_NOT_RECOGNIZED = 1024,
ERROR_UNABLE_TO_OPEN_RRES_FILE = 2048,
ERROR_INVALID_RRES_FILE = 4096,
ERROR_INVALID_RRES_RESOURCE = 8192,
ERROR_UNINITIALIZED_CHANNELS = 16384
} AudioError;
// Sound source type

View File

@ -452,22 +452,22 @@ typedef struct Ray {
Vector3 direction;
} Ray;
typedef enum {
ERROR_RAW_CONTEXT_CREATION = -20,
ERROR_XM_CONTEXT_CREATION,
ERROR_MOD_CONTEXT_CREATION,
ERROR_MIX_CHANNEL_CREATION,
ERROR_MUSIC_CHANNEL_CREATION,
ERROR_LOADING_XM,
ERROR_LOADING_MOD,
ERROR_LOADING_WAV,
ERROR_LOADING_OGG,
ERROR_OUT_OF_MIX_CHANNELS,
ERROR_EXTENSION_NOT_RECOGNIZED,
ERROR_UNABLE_TO_OPEN_RRES_FILE,
ERROR_INVALID_RRES_FILE,
ERROR_INVALID_RRES_RESOURCE,
ERROR_UNINITIALIZED_CHANNELS
typedef enum { // allows errors to be & together
ERROR_RAW_CONTEXT_CREATION = 1,
ERROR_XM_CONTEXT_CREATION = 2,
ERROR_MOD_CONTEXT_CREATION = 4,
ERROR_MIX_CHANNEL_CREATION = 8,
ERROR_MUSIC_CHANNEL_CREATION = 16,
ERROR_LOADING_XM = 32,
ERROR_LOADING_MOD = 64,
ERROR_LOADING_WAV = 128,
ERROR_LOADING_OGG = 256,
ERROR_OUT_OF_MIX_CHANNELS = 512,
ERROR_EXTENSION_NOT_RECOGNIZED = 1024,
ERROR_UNABLE_TO_OPEN_RRES_FILE = 2048,
ERROR_INVALID_RRES_FILE = 4096,
ERROR_INVALID_RRES_RESOURCE = 8192,
ERROR_UNINITIALIZED_CHANNELS = 16384
} AudioError;
// Sound source type