Ray
29896a2403
REVIEWED: Some comments (Code Gardening)
2 viikkoa sitten
Ray
0c33c603f4
REVIEWED: `EXTERNAL_CONFIG_FLAGS` usage, check moved to `config.h`
Due to `utils` module removal, `EXTERNAL_CONFIG_FLAGS` was not working, so the system was redesigned.
This change is independent of #4411
3 viikkoa sitten
Ray
dd7a1948f1
WARNING: REDESIGN: REMOVED: `utils` module, functionality moved to `rcore` module: logging and file-system #4551
[utils] was created long time ago, when [rcore] contained all the platforms code, the purpose of the file was exposing basic filesystem functionality across modules and also logging mechanism but many things have changed since then and there is no need to keep using this module.
- Logging system has been move to [rcore] module and macros are exposed through `config.h` to other modules
- File system functionality has also been centralized in [rcore] module that along the years it was already adding more and more file-system functions, now they are all in the same module
- Android specific code has been moved to `rcore_android.c`, it had no sense to have specific platform code in `utils`, [rcore] is responsible of all platform code.
4 viikkoa sitten
Marcos Paccor
16e6d325b9
[raudio] Fix freeing the wrong memory ( #5481 )
1 kuukausi sitten
Ray
416af51a93
Update year to 2026
1 kuukausi sitten
Ray
909f040dc5
Remove trailing spaces
1 kuukausi sitten
Ray
b465b4e2ea
RENAMED: Variable names for consistency, `textLength` (length in bytes) vs `textSize` (measure in pixels)
1 kuukausi sitten
Ray
2a566544d4
ADDED: Multiply security checks to avoid crashes on wrongly provided string data #4751
- REVIEWED: Checking `NULL` input on functions getting `const char *text`, to avoid crashes
- REVIEWED: `strcpy()` usage, prioritize `strncpy()` with limited copy to buffer size
- REPLACED: `strlen()` by `TextLength()` on [rtext] module
- REVIEWED: Replaced some early returns (but keeping others, for easier code following)
1 kuukausi sitten
Ray
4724f7cf1b
REVIEWED: Comments for `UpdateSound()` specifying expected data format #5350
2 kuukautta sitten
Ray
e1b9857b14
Some TODOs and format reviews
2 kuukautta sitten
Ray
6c3ef8d9b4
Remove trailing spaces
2 kuukautta sitten
Ray
ba65bd7f99
WARNING: BREAKING: Redesigned `SetSoundPan()` and `SetMusicPan()` #5350
Now it goes from -1.0 (full left) to 1.0 (full right) being 0.0 center
2 kuukautta sitten
Ray
18e4d1d44f
Reviewed formating
3 kuukautta sitten
Saksham Goyal
adfe2c1704
C++ compiler support v2 ( #5252 )
* Get C++ compilers working
* Fix Formatting
3 kuukautta sitten
Ray
64641c6a01
Update raudio.c
5 kuukautta sitten
Ray
8f32c502a7
REVIEWED: Code sections definition
5 kuukautta sitten
Andreas Rossberg
2deae294c6
[raudio] Properly close FLAC in UnloadMusicStream
Fix raysan5/raylib#5131 .
5 kuukautta sitten
Jeffery Myers
572230c8ad
Initialize sound alias properties as if it was a new sound
5 kuukautta sitten
Ray
570082deba
`WARNING`: **NEW** raylib code CONVENTION: Comments do not end with '.'
6 kuukautta sitten
Ray
e09c9ce281
Minor tweaks
6 kuukautta sitten
Ray
b40e53f11c
Remove double line spacing
6 kuukautta sitten
Ray
eb7f8912f8
Minor format tweaks
6 kuukautta sitten
Ray
71b302846a
Review formatting, avoid variable
6 kuukautta sitten
veins1
0405de794a
Fix for music stopping too early
6 kuukautta sitten
veins1
d03ac97eff
GetMusicTimePlayed fix for music shorter than buffer size
6 kuukautta sitten
Maicon Santana
3320a2c837
Fix to prevent UpdateMusicStream to run without music playing
6 kuukautta sitten
wwderw
8ef51850bf
Update raudio.c
Allow for the use of raudio stand alone
7 kuukautta sitten
Amy Wilder
d4f09984ac
Add safety notes to 'Update_' functions
7 kuukautta sitten
Ray
59bcf680aa
Code gardening...
8 kuukautta sitten
Ivan Ugryumov
ec5ce8c7fe
Update raudio.c
9 kuukautta sitten
Jeffery Myers
0f6b9ee738
format math the way ray likes it
9 kuukautta sitten
Jeffery Myers
5185d4c427
use the device channels and sample size when computing the default buffer size.
9 kuukautta sitten
Ralph Caraveo
4522ecae1a
[raudio] Fixed memory leak on early-return of WaveFormat func ( #4779 )
In the case of a failure within miniaudio on the function: ma_convert_frames, the dynamic memory allocated for the `data` variable will leak on the early return.
11 kuukautta sitten
Ray
fa0eada61a
Update year to 2025
1 vuosi sitten
Ray
1f45e7af76
REVIEWED: Coding conventions
1 vuosi sitten
Ray
962f1c26ff
Review formatting to follow raylib conventions
1 vuosi sitten
Caleb Heydon
58fe34d9cc
[raudio] Fixed buffer overflow when loading WAV files ( #4539 )
1 vuosi sitten
veins1
11429b48eb
Fix for #4521 ( #4523 )
1 vuosi sitten
Ray
8cbf34ddc4
WARNING: BREAKING: Renamed several functions for data validation #3930
1 vuosi sitten
konstruktor227
b0c3013b51
[raudio] Support 24-bit FLACs in `LoadMusicStreamFromMemory` ( #4279 )
Force conversion to 16-bit, same as how it is done in `LoadMusicStream`.
This fixes the problem where 24-bit FLACs play silence or broken sound.
1 vuosi sitten
Ray
3abe728712
Minor tweaks
1 vuosi sitten
Ray
17cbc75aa7
REVIEWED: Formatting, follow raylib coding conventions
1 vuosi sitten
listeria
df849d2fb0
[raudio] fix mapping of wave data in LoadWaveSamples() ( #4062 )
Co-authored-by: Listeria monocytogenes <listeria@disroot.org>
1 vuosi sitten
Alexey Kutepov
33c598123c
[raudio] Add 24 bits samples support for FLAC format ( #4058 )
Similarly to how it's done for WAV format, by forcing the conversion
to s16 on UpdateMusicStream().
1 vuosi sitten
listeria
b429dbdc4b
fix WaveCrop(): update wave->frameCount ( #4003 )
also allow `finalFrame = wave->frameCount' as the range of frames does
not include it.
Co-authored-by: Listeria monocytogenes <listeria@disroot.org>
1 vuosi sitten
listeria
bb9bd73f43
fix WaveCrop() and use frames instead of samples ( #3994 )
Co-authored-by: Listeria monocytogenes <listeria@disroot.org>
1 vuosi sitten
FishingHacks
3d70d6179c
[raudio] Removed drwav_uninit in LoadMusicStream to fix a crash ( #3986 )
1 vuosi sitten
veins1
1aa3559155
Fixes for loading Music ( #3966 )
* Fixes for loading Music
Fix for #3889
Fixes for QOA crashes.
Memory leak FIX on unsuccessful .wav loading.
* Added comments
1 vuosi sitten
Ray
3caa424ad4
Review formatting
1 vuosi sitten
Ray
c1943f0f7c
REVIEWED: Move some functions, made them static
1 vuosi sitten