mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-25 10:22:33 -05:00
Compare commits
3 Commits
6a048b7afe
...
4d9df337a7
| Author | SHA1 | Date | |
|---|---|---|---|
| 4d9df337a7 | |||
| 4724f7cf1b | |||
| a568506265 |
2
src/external/sdefl.h
vendored
2
src/external/sdefl.h
vendored
@ -198,7 +198,7 @@ extern int zsdeflate(struct sdefl *s, void *o, const void *i, int n, int lvl);
|
||||
static int
|
||||
sdefl_ilog2(int n) {
|
||||
if (!n) return 0;
|
||||
#ifdef _MSC_VER
|
||||
#if defined(_MSC_VER) && !defined(__llvm__) && !defined(__INTEL_COMPILER) // @raysan5, address PR #5367
|
||||
unsigned long msbp = 0;
|
||||
_BitScanReverse(&msbp, (unsigned long)n);
|
||||
return (int)msbp;
|
||||
|
||||
2
src/external/sinfl.h
vendored
2
src/external/sinfl.h
vendored
@ -171,7 +171,7 @@ extern int zsinflate(void *out, int cap, const void *in, int size);
|
||||
|
||||
static int
|
||||
sinfl_bsr(unsigned n) {
|
||||
#ifdef _MSC_VER
|
||||
#if defined(_MSC_VER) && !defined(__llvm__) && !defined(__INTEL_COMPILER) // @raysan5, address PR #5367
|
||||
unsigned long uln = 0;
|
||||
_BitScanReverse(&uln, n);
|
||||
return (int)(uln);
|
||||
|
||||
@ -1040,8 +1040,8 @@ void UnloadSoundAlias(Sound alias)
|
||||
}
|
||||
|
||||
// Update sound buffer with new data
|
||||
// NOTE 1: data format must match sound.stream.sampleSize
|
||||
// NOTE 2: frameCount must not exceed sound.frameCount
|
||||
// PARAMS: [data], format must match sound.stream.sampleSize, default 32 bit float - stereo
|
||||
// PARAMS: [frameCount] must not exceed sound.frameCount
|
||||
void UpdateSound(Sound sound, const void *data, int frameCount)
|
||||
{
|
||||
if (sound.stream.buffer != NULL)
|
||||
|
||||
@ -1657,7 +1657,7 @@ RLAPI Sound LoadSound(const char *fileName); // Load so
|
||||
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 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 (data and frame count should fit in sound)
|
||||
RLAPI void UpdateSound(Sound sound, const void *data, int sampleCount); // Update sound buffer with new data (default data format: 32 bit float, stereo)
|
||||
RLAPI void UnloadWave(Wave wave); // Unload wave data
|
||||
RLAPI void UnloadSound(Sound sound); // Unload sound
|
||||
RLAPI void UnloadSoundAlias(Sound alias); // Unload a sound alias (does not deallocate sample data)
|
||||
|
||||
@ -11730,7 +11730,7 @@
|
||||
},
|
||||
{
|
||||
"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",
|
||||
"params": [
|
||||
{
|
||||
|
||||
@ -7995,7 +7995,7 @@ return {
|
||||
},
|
||||
{
|
||||
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",
|
||||
params = {
|
||||
{type = "Sound", name = "sound"},
|
||||
|
||||
@ -4483,7 +4483,7 @@ Function 543: IsSoundValid() (1 input parameters)
|
||||
Function 544: UpdateSound() (3 input parameters)
|
||||
Name: UpdateSound
|
||||
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[2]: data (type: const void *)
|
||||
Param[3]: sampleCount (type: int)
|
||||
|
||||
@ -2998,7 +2998,7 @@
|
||||
<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="" />
|
||||
</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="const void *" name="data" desc="" />
|
||||
<Param type="int" name="sampleCount" desc="" />
|
||||
|
||||
Reference in New Issue
Block a user