convenient way to combine errors
This commit is contained in:
parent
af1eb5453a
commit
cf2975d062
30
src/audio.h
30
src/audio.h
@ -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
|
||||
|
32
src/raylib.h
32
src/raylib.h
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user