Ray
18e4d1d44f
Reviewed formating
1 week ago
Saksham Goyal
adfe2c1704
C++ compiler support v2 ( #5252 )
* Get C++ compilers working
* Fix Formatting
1 week ago
Ray
64641c6a01
Update raudio.c
1 month ago
Ray
8f32c502a7
REVIEWED: Code sections definition
1 month ago
Andreas Rossberg
2deae294c6
[raudio] Properly close FLAC in UnloadMusicStream
Fix raysan5/raylib#5131 .
2 months ago
Jeffery Myers
572230c8ad
Initialize sound alias properties as if it was a new sound
2 months ago
Ray
570082deba
`WARNING`: **NEW** raylib code CONVENTION: Comments do not end with '.'
2 months ago
Ray
e09c9ce281
Minor tweaks
2 months ago
Ray
b40e53f11c
Remove double line spacing
2 months ago
Ray
eb7f8912f8
Minor format tweaks
3 months ago
Ray
71b302846a
Review formatting, avoid variable
3 months ago
veins1
0405de794a
Fix for music stopping too early
3 months ago
veins1
d03ac97eff
GetMusicTimePlayed fix for music shorter than buffer size
3 months ago
Maicon Santana
3320a2c837
Fix to prevent UpdateMusicStream to run without music playing
3 months ago
wwderw
8ef51850bf
Update raudio.c
Allow for the use of raudio stand alone
3 months ago
Amy Wilder
d4f09984ac
Add safety notes to 'Update_' functions
3 months ago
Ray
59bcf680aa
Code gardening...
4 months ago
Ivan Ugryumov
ec5ce8c7fe
Update raudio.c
6 months ago
Jeffery Myers
0f6b9ee738
format math the way ray likes it
6 months ago
Jeffery Myers
5185d4c427
use the device channels and sample size when computing the default buffer size.
6 months ago
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.
8 months ago
Ray
fa0eada61a
Update year to 2025
9 months ago
Ray
1f45e7af76
REVIEWED: Coding conventions
10 months ago
Ray
962f1c26ff
Review formatting to follow raylib conventions
10 months ago
Caleb Heydon
58fe34d9cc
[raudio] Fixed buffer overflow when loading WAV files ( #4539 )
11 months ago
veins1
11429b48eb
Fix for #4521 ( #4523 )
11 months ago
Ray
8cbf34ddc4
WARNING: BREAKING: Renamed several functions for data validation #3930
1 year ago
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 year ago
Ray
3abe728712
Minor tweaks
1 year ago
Ray
17cbc75aa7
REVIEWED: Formatting, follow raylib coding conventions
1 year ago
listeria
df849d2fb0
[raudio] fix mapping of wave data in LoadWaveSamples() ( #4062 )
Co-authored-by: Listeria monocytogenes <listeria@disroot.org>
1 year ago
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 year ago
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 year ago
listeria
bb9bd73f43
fix WaveCrop() and use frames instead of samples ( #3994 )
Co-authored-by: Listeria monocytogenes <listeria@disroot.org>
1 year ago
FishingHacks
3d70d6179c
[raudio] Removed drwav_uninit in LoadMusicStream to fix a crash ( #3986 )
1 year ago
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 year ago
Ray
3caa424ad4
Review formatting
1 year ago
Ray
c1943f0f7c
REVIEWED: Move some functions, made them static
1 year ago
Christian Haas
d80a622972
[raudio] Fix 3664: crash in raudio from multithreading issues ( #3907 )
* Flip release of buffer;
First it needs to be taken out of the processing chain, then it can be released. The inverse of the initialization.
* Add mutex locks to audio buffer functions; Separate those used from both threads
* Flip release of buffer;
First it needs to be taken out of the processing chain, then it can be released. The inverse of the initialization.
* Remove TODO marker; The buffer is in stopped state and its data won't be accessed
* Add mutex locks to music/stream functions directly operating on buffer
* Secure UpdateMusicStream/PlayMusicStream/UpdateAudioStream;
This change is twofold:
* Add locks to UpdateMusicStream/UpdateAudioStream (second one needed separation)
* Remove unnecessary hack to restart music - inlining the statements resulted in a no-op
Especially the second part made it easier to ensure thread-safety overall
* Remove redundant check; Already checked at beginning of function
1 year ago
Ray
29ce13b777
Code gardening
- Review formatting
- Improve readability for some functions result return
- Minimize early returns
- Align LoadFileData() to UnloadFileData()
1 year ago
veins1
289e7d3a6c
Reset music.ctxType if loading wasn't succesful ( #3917 )
Fixes some crashes, e.g. calling StopMusicStream after trying to load Music from a non-existant .mp3 file
1 year ago
Ray
646d70e93a
Remove trailing spaces
1 year ago
IoIxD
7ec43022c1
Fix segfault in ExportWaveAsCode ( #3769 )
`char *txtData = (char *)RL_CALLOC(waveDataSize * 6 + 2000, sizeof(char));`
assumes every chunk being added to txtData is 6 bytes. This is not always true, sometimes a newline is involved and the data becomes 12 bytes instead, and this can cause a random segfault.
This commit changes `6` to `12`, and explains why in the comment.
1 year ago
Alessandro Nikolaev
cf10cdd6b3
Added missing "standalone" functions to raudio.c & fixed return bug ( #3760 )
* Added GetFileNameWithoutExt, GetFileName & strprbrk to raudio.c
* Gave return values to SaveFileData & SaveFileText in raudio.c
1 year ago
Idir Carlos Aliane
6f1c31b25d
Change some minor comments to align with comments style ( #3755 )
1 year ago
Ray
c95b71d40d
Update raudio.c
1 year ago
Ray
3f1e59a7cf
Update copyright to 2024
1 year ago
Alexandre Almeida
f6de0358e1
Disable unused miniaudio features ( #3544 )
* Disable unused miniaudio features
* Fix mistakes
1 year ago
Ray
f88604e6d5
Reviewed QOA seek PR
2 years ago
veins1
6842012748
Fix QOA seeking ( #3494 )
2 years ago