diff options
| author | raysan5 <raysan5@gmail.com> | 2016-06-02 17:12:31 +0200 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2016-06-02 17:12:31 +0200 |
| commit | cf6d2e39852b4e73479369a383ab3666189ee23f (patch) | |
| tree | 10b806a0492bea189549ee362ec199c9eb5d9481 /src/raylib.h | |
| parent | 7447b3e1dacf3075d8b6c20e227e6ef9e786bb1f (diff) | |
| download | raylib-cf6d2e39852b4e73479369a383ab3666189ee23f.tar.gz raylib-cf6d2e39852b4e73479369a383ab3666189ee23f.zip | |
Review coding style to match raylib style
Moved AudioError enum inside audio.c
Diffstat (limited to 'src/raylib.h')
| -rw-r--r-- | src/raylib.h | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/src/raylib.h b/src/raylib.h index 21892d68..97f4a2e6 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -452,29 +452,10 @@ typedef struct Ray { Vector3 direction; } Ray; -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 typedef struct Sound { unsigned int source; unsigned int buffer; - AudioError error; // if there was any error during the creation or use of this Sound } Sound; // Wave type, defines audio wave data @@ -488,8 +469,6 @@ typedef struct Wave { typedef int RawAudioContext; - - // Texture formats // NOTE: Support depends on OpenGL version and platform typedef enum { @@ -940,7 +919,7 @@ bool IsMusicPlaying(int index); // Check if musi void SetMusicVolume(int index, float volume); // Set volume for music (1.0 is max level) float GetMusicTimeLength(int index); // Get current music time length (in seconds) float GetMusicTimePlayed(int index); // Get current music time played (in seconds) -int getMusicStreamCount(void); +int GetMusicStreamCount(void); void SetMusicPitch(int index, float pitch); // used to output raw audio streams, returns negative numbers on error |
