This fix the audio cutoff issues when building in release mode
Explaination from @garrettjoecox
The result of osAiSetFrequency was being used later on to multiply the length an audio sequence would play. In debug mode this stub was returning 1, whereas in release mode this would return whatever was passed in as the freq argument.
Co-authored-by: Garrett Cox <garrettjcox@gmail.com>
* initial audio work
* Implements caching and fixes a ton of issues with audio
* Uses correct memory sizes in mixer.c
* Resets mixer values
* Actually correct dmem buff values in mixer.c
* Remove breakpoints
* Fix sequences not playing
* The forbidden type.
* Forbidden TYPES?!
* Thanks Louis
* Thanks Louis Part 2
* Fix garbled audio
* Fixed ADSR bugs
* Fixes ASAN crash in loading samples.
This code is causing the game to attempt to read sample data beyond the actual sample data.
* Comments out the sample clamping since we aren't affecting the rest of the calculations in the function.
* Fixes crashing while loading audio samples.
Additionally, lowers the log level for audio commands.
* Textbox SFX UB Fix
* Decreases priority of more debug messages
* Fixed a couple uintptr_t issues
* Adds context to Jack's hack of shortcutting later loading sequences.
* Audio corruption fix
* Few uintptr_t fixes
* Fix build on linux
* Fix build on mac
* call audio exit
* fix sfx in dialog
* unstub more audio funcs
---------
Co-authored-by: Random06457 <28494085+Random06457@users.noreply.github.com>
Co-authored-by: Nicholas Estelami <NEstelami@users.noreply.github.com>
Co-authored-by: louis <35883445+louist103@users.noreply.github.com>
Co-authored-by: Adam Bird <archez39@me.com>