Ver código fonte

Renamed functions for consistency

pull/114/head
raysan5 9 anos atrás
pai
commit
5f73850fa6
3 arquivos alterados com 6 adições e 6 exclusões
  1. +2
    -2
      src/audio.c
  2. +2
    -2
      src/audio.h
  3. +2
    -2
      src/raylib.h

+ 2
- 2
src/audio.c Ver arquivo

@ -585,7 +585,7 @@ void StopSound(Sound sound)
}
// Check if a sound is playing
bool SoundIsPlaying(Sound sound)
bool IsSoundPlaying(Sound sound)
{
bool playing = false;
ALint state;
@ -764,7 +764,7 @@ void ResumeMusicStream(void)
}
// Check if music is playing
bool MusicIsPlaying(void)
bool IsMusicPlaying(void)
{
bool playing = false;
ALint state;

+ 2
- 2
src/audio.h Ver arquivo

@ -96,7 +96,7 @@ void UnloadSound(Sound sound); // Unload sound
void PlaySound(Sound sound); // Play a sound
void PauseSound(Sound sound); // Pause a sound
void StopSound(Sound sound); // Stop playing a sound
bool SoundIsPlaying(Sound sound); // Check if a sound is currently playing
bool IsSoundPlaying(Sound sound); // Check if a sound is currently playing
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)
@ -105,7 +105,7 @@ void UpdateMusicStream(void); // Updates buffe
void StopMusicStream(void); // Stop music playing (close stream)
void PauseMusicStream(void); // Pause music playing
void ResumeMusicStream(void); // Resume playing paused music
bool MusicIsPlaying(void); // Check if music is playing
bool IsMusicPlaying(void); // Check if music is playing
void SetMusicVolume(float volume); // Set volume for music (1.0 is max level)
float GetMusicTimeLength(void); // Get music time length (in seconds)
float GetMusicTimePlayed(void); // Get current music time played (in seconds)

+ 2
- 2
src/raylib.h Ver arquivo

@ -882,7 +882,7 @@ void UnloadSound(Sound sound); // Unload sound
void PlaySound(Sound sound); // Play a sound
void PauseSound(Sound sound); // Pause a sound
void StopSound(Sound sound); // Stop playing a sound
bool SoundIsPlaying(Sound sound); // Check if a sound is currently playing
bool IsSoundPlaying(Sound sound); // Check if a sound is currently playing
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)
@ -891,7 +891,7 @@ void UpdateMusicStream(void); // Updates buffe
void StopMusicStream(void); // Stop music playing (close stream)
void PauseMusicStream(void); // Pause music playing
void ResumeMusicStream(void); // Resume playing paused music
bool MusicIsPlaying(void); // Check if music is playing
bool IsMusicPlaying(void); // Check if music is playing
void SetMusicVolume(float volume); // Set volume for music (1.0 is max level)
float GetMusicTimeLength(void); // Get current music time length (in seconds)
float GetMusicTimePlayed(void); // Get current music time played (in seconds)

Carregando…
Cancelar
Salvar