- Implement radix-2 Cooley-Tukey FFT algorithm
- Add windowing functions: Hann, Hamming, Blackman, Rectangular
- Support configurable frequency bin count
- Add peak detection with configurable decay rate
- Include temporal smoothing for visualization
- Add spectrum analysis example program
- Proper memory management with init/close lifecycle
Bug-fix: Add buffer bounds checking to prevent overflow when sample count is not power of 2
Signed-off-by: Srikanth Patchava <spatchava@meta.com>
* Add audio_raw_stream_callback.c
* Update audio_raw_stream_callback.c to more closely follow raylib coding conventions
* Remove spaces before asterisks in comments in audio_raw_stream_callback.c
* Put SetTargetFPS(30) before while(!WindowShouldClose()) in audio_raw_stream_callback.c
* Add audio_stream_callback.c
* Delete examples/audio/audio_raw_stream_callback.c
* Delete examples/audio/audio_raw_stream_callback.png
* Update audio_raw_stream.c to more closely follow raylib coding conventions
Drawing code wasn't tabbed in
* Remove screenshot code in audio_stream_callback.c
* Update raylib version and copyright year in audio_raw_stream.c
* Update audio_stream_callback.c
Used if instead of switch to compact code; seemed more readable in this case.
* Update audio_raw_stream.c
* Update audio_raw_stream.c to more closely follow raylib coding conventions
* Update audio_raw_stream.c to more closely follow raylib coding conventions
I accidentally put the file in the wrong folder.
* Delete examples/audio_raw_stream.c
* Remove spaces before asterisks in comments in audio_raw_stream.c
* Put SetTargetFPS(30) before while (!WindowShouldClose()) in audio_raw_stream.c
* Update examples inconsistencies
* Happy new years, examples!
* Missed one inconsistency
* Update final few examples inconsistencies
---------
Co-authored-by: Anstro Pleuton <anstropleuton@github.com>
* Update raylib_api.* by CI
* Fix warnings when building examples in MSVC 2022
* fix auto-format that sneaked in there.
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Update audio_stream_effects.c
This may slightly improve performance and be more welcoming for new users despite being an more advanced feature.
void * usually throws an error in most compilers and it would be better to just avoid it.
Also added <stdbool.h> because booleans are, sometimes, not defined by <stddef.h>.
* Update audio_stream_effects.c