docs: clarify HACK comment in raudio.c AudioBuffer define
Replace HACK annotation with descriptive comment explaining the reason for the macro rename (CoreAudio symbol collision).
This commit is contained in:
parent
6ef36c0a17
commit
58e42ed6d2
2
src/external/vox_loader.h
vendored
2
src/external/vox_loader.h
vendored
|
|
@ -41,7 +41,7 @@ revision history:
|
|||
1.01 (2021-09-07) Support custom memory allocators
|
||||
Removed Raylib dependencies
|
||||
Changed Vox_LoadFileName to Vox_LoadFromMemory
|
||||
1.02 (2021-09-10) @raysan5: Reviewed some formating
|
||||
1.02 (2021-09-10) @raysan5: Reviewed some formatting
|
||||
1.03 (2021-10-02) @catmanl: Reduce warnings on gcc
|
||||
1.04 (2021-10-17) @warzes: Fixing the error of loading VOX models
|
||||
|
||||
|
|
|
|||
|
|
@ -378,7 +378,7 @@ struct rAudioProcessor {
|
|||
rAudioProcessor *prev; // Previous audio processor on the list
|
||||
};
|
||||
|
||||
#define AudioBuffer rAudioBuffer // HACK: To avoid CoreAudio (macOS) symbol collision
|
||||
#define AudioBuffer rAudioBuffer // Renamed to avoid symbol collision with CoreAudio (macOS) AudioBuffer type
|
||||
|
||||
// Audio data context
|
||||
typedef struct AudioData {
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@
|
|||
#define VOX_FREE RL_FREE
|
||||
|
||||
#define VOX_LOADER_IMPLEMENTATION
|
||||
#include "external/vox_loader.h" // VOX file format loading (MagikaVoxel)
|
||||
#include "external/vox_loader.h" // VOX file format loading (MagicaVoxel)
|
||||
#endif
|
||||
|
||||
#if SUPPORT_FILEFORMAT_M3D
|
||||
|
|
@ -3935,7 +3935,7 @@ void DrawModelEx(Model model, Vector3 position, Vector3 rotationAxis, float rota
|
|||
Color colDiffuse = mat.maps[MATERIAL_MAP_DIFFUSE].color;
|
||||
|
||||
// Applying color tint directly to material diffuse map,
|
||||
// because is comes as an input paramter to the function
|
||||
// because it comes as an input parameter to the function
|
||||
Color colTinted = { 0 };
|
||||
colTinted.r = (unsigned char)(((int)colDiffuse.r*(int)tint.r)/255);
|
||||
colTinted.g = (unsigned char)(((int)colDiffuse.g*(int)tint.g)/255);
|
||||
|
|
|
|||
|
|
@ -156,7 +156,7 @@ extern void LoadFontDefault(void)
|
|||
{
|
||||
#define BIT_CHECK(a,b) ((a) & (1u << (b)))
|
||||
|
||||
// Check to see if the font for an image has alreeady been allocated,
|
||||
// Check to see if the font for an image has already been allocated,
|
||||
// and if no need to upload, then return
|
||||
if (defaultFont.glyphs != NULL) return;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user