3 Commits

8 changed files with 9 additions and 9 deletions
Unified View
  1. +1
    -1
      src/external/sdefl.h
  2. +1
    -1
      src/external/sinfl.h
  3. +2
    -2
      src/raudio.c
  4. +1
    -1
      src/raylib.h
  5. +1
    -1
      tools/rlparser/output/raylib_api.json
  6. +1
    -1
      tools/rlparser/output/raylib_api.lua
  7. +1
    -1
      tools/rlparser/output/raylib_api.txt
  8. +1
    -1
      tools/rlparser/output/raylib_api.xml

+ 1
- 1
src/external/sdefl.h View File

@ -198,7 +198,7 @@ extern int zsdeflate(struct sdefl *s, void *o, const void *i, int n, int lvl);
static int static int
sdefl_ilog2(int n) { sdefl_ilog2(int n) {
if (!n) return 0; if (!n) return 0;
#ifdef _MSC_VER
#if defined(_MSC_VER) && !defined(__llvm__) && !defined(__INTEL_COMPILER) // @raysan5, address PR #5367
unsigned long msbp = 0; unsigned long msbp = 0;
_BitScanReverse(&msbp, (unsigned long)n); _BitScanReverse(&msbp, (unsigned long)n);
return (int)msbp; return (int)msbp;

+ 1
- 1
src/external/sinfl.h View File

@ -171,7 +171,7 @@ extern int zsinflate(void *out, int cap, const void *in, int size);
static int static int
sinfl_bsr(unsigned n) { sinfl_bsr(unsigned n) {
#ifdef _MSC_VER
#if defined(_MSC_VER) && !defined(__llvm__) && !defined(__INTEL_COMPILER) // @raysan5, address PR #5367
unsigned long uln = 0; unsigned long uln = 0;
_BitScanReverse(&uln, n); _BitScanReverse(&uln, n);
return (int)(uln); return (int)(uln);

+ 2
- 2
src/raudio.c View File

@ -1040,8 +1040,8 @@ void UnloadSoundAlias(Sound alias)
} }
// Update sound buffer with new data // Update sound buffer with new data
// ">NOTE 1: data format must match sound.stream.sampleSize
// ">NOTE 2: frameCount must not exceed sound.frameCount
// l">PARAMS: [data], format must match sound.stream.sampleSize, default 32 bit float - stereo
// l">PARAMS: [frameCount] must not exceed sound.frameCount
void UpdateSound(Sound sound, const void *data, int frameCount) void UpdateSound(Sound sound, const void *data, int frameCount)
{ {
if (sound.stream.buffer != NULL) if (sound.stream.buffer != NULL)

+ 1
- 1
src/raylib.h View File

@ -1657,7 +1657,7 @@ RLAPI Sound LoadSound(const char *fileName); // Load so
RLAPI Sound LoadSoundFromWave(Wave wave); // Load sound from wave data RLAPI Sound LoadSoundFromWave(Wave wave); // Load sound from wave data
RLAPI Sound LoadSoundAlias(Sound source); // Create a new sound that shares the same sample data as the source sound, does not own the sound data RLAPI Sound LoadSoundAlias(Sound source); // Create a new sound that shares the same sample data as the source sound, does not own the sound data
RLAPI bool IsSoundValid(Sound sound); // Checks if a sound is valid (data loaded and buffers initialized) RLAPI bool IsSoundValid(Sound sound); // Checks if a sound is valid (data loaded and buffers initialized)
RLAPI void UpdateSound(Sound sound, const void *data, int sampleCount); // Update sound buffer with new data (n">data and frame count should fit in sound)
RLAPI void UpdateSound(Sound sound, const void *data, int sampleCount); // Update sound buffer with new data (k">default data format: 32 bit float, stereo)
RLAPI void UnloadWave(Wave wave); // Unload wave data RLAPI void UnloadWave(Wave wave); // Unload wave data
RLAPI void UnloadSound(Sound sound); // Unload sound RLAPI void UnloadSound(Sound sound); // Unload sound
RLAPI void UnloadSoundAlias(Sound alias); // Unload a sound alias (does not deallocate sample data) RLAPI void UnloadSoundAlias(Sound alias); // Unload a sound alias (does not deallocate sample data)

+ 1
- 1
tools/rlparser/output/raylib_api.json View File

@ -11730,7 +11730,7 @@
}, },
{ {
"name": "UpdateSound", "name": "UpdateSound",
"description": "Update sound buffer with new data (data and frame count should fit in sound)",
"description": "Update sound buffer with new data (default data format: 32 bit float, stereo)",
"returnType": "void", "returnType": "void",
"params": [ "params": [
{ {

+ 1
- 1
tools/rlparser/output/raylib_api.lua View File

@ -7995,7 +7995,7 @@ return {
}, },
{ {
name = "UpdateSound", name = "UpdateSound",
description = "Update sound buffer with new data (data and frame count should fit in sound)",
description = "Update sound buffer with new data (default data format: 32 bit float, stereo)",
returnType = "void", returnType = "void",
params = { params = {
{type = "Sound", name = "sound"}, {type = "Sound", name = "sound"},

+ 1
- 1
tools/rlparser/output/raylib_api.txt View File

@ -4483,7 +4483,7 @@ Function 543: IsSoundValid() (1 input parameters)
Function 544: UpdateSound() (3 input parameters) Function 544: UpdateSound() (3 input parameters)
Name: UpdateSound Name: UpdateSound
Return type: void Return type: void
Description: Update sound buffer with new data (data and frame count should fit in sound)
Description: Update sound buffer with new data (default data format: 32 bit float, stereo)
Param[1]: sound (type: Sound) Param[1]: sound (type: Sound)
Param[2]: data (type: const void *) Param[2]: data (type: const void *)
Param[3]: sampleCount (type: int) Param[3]: sampleCount (type: int)

+ 1
- 1
tools/rlparser/output/raylib_api.xml View File

@ -2998,7 +2998,7 @@
<Function name="IsSoundValid" retType="bool" paramCount="1" desc="Checks if a sound is valid (data loaded and buffers initialized)"> <Function name="IsSoundValid" retType="bool" paramCount="1" desc="Checks if a sound is valid (data loaded and buffers initialized)">
<Param type="Sound" name="sound" desc="" /> <Param type="Sound" name="sound" desc="" />
</Function> </Function>
<Function name="UpdateSound" retType="void" paramCount="3" desc="Update sound buffer with new data (data and frame count should fit in sound)">
<Function name="UpdateSound" retType="void" paramCount="3" desc="Update sound buffer with new data (default data format: 32 bit float, stereo)">
<Param type="Sound" name="sound" desc="" /> <Param type="Sound" name="sound" desc="" />
<Param type="const void *" name="data" desc="" /> <Param type="const void *" name="data" desc="" />
<Param type="int" name="sampleCount" desc="" /> <Param type="int" name="sampleCount" desc="" />

Loading…
Cancel
Save