diff options
| author | Joshua Reisenauer <[email protected]> | 2016-06-02 13:43:11 -0700 |
|---|---|---|
| committer | Joshua Reisenauer <[email protected]> | 2016-06-02 13:43:11 -0700 |
| commit | 96fa716525e22f9f75575f2dc1b431c58567d8a1 (patch) | |
| tree | b79a76033bf94e9f25cad98f0529cdd455a67e5f /src/audio.h | |
| parent | cf2975d062a991d69fde60c3cdc043a8a39a09dc (diff) | |
| parent | 4bc339ea4e5d833558ad4bcf14cd41e2a48a1d83 (diff) | |
| download | raylib-96fa716525e22f9f75575f2dc1b431c58567d8a1.tar.gz raylib-96fa716525e22f9f75575f2dc1b431c58567d8a1.zip | |
Merge remote-tracking branch 'refs/remotes/raysan5/develop' into develop
Diffstat (limited to 'src/audio.h')
| -rw-r--r-- | src/audio.h | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/src/audio.h b/src/audio.h index a7475566..fe72d866 100644 --- a/src/audio.h +++ b/src/audio.h @@ -47,24 +47,6 @@ #endif #endif -typedef enum { - 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; @@ -111,7 +93,7 @@ bool IsSoundPlaying(Sound sound); // Check if a so void SetSoundVolume(Sound sound, float volume); // Set volume for a sound (1.0 is max level) void SetSoundPitch(Sound sound, float pitch); // Set pitch for a sound (1.0 is base level) -int PlayMusicStream(int musicIndex, char *fileName); // Start music playing (open stream) +int PlayMusicStream(int index, char *fileName); // Start music playing (open stream) void UpdateMusicStream(int index); // Updates buffers for music streaming void StopMusicStream(int index); // Stop music playing (close stream) void PauseMusicStream(int index); // Pause music playing @@ -120,7 +102,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 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 |
