diff options
| author | engineer124 <47598039+engineer124@users.noreply.github.com> | 2022-07-27 15:53:56 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-27 17:53:56 -0400 |
| commit | 423fec9f79e7be26847a52ca04c85ff0125bd941 (patch) | |
| tree | 64d5fe96c244d247fbd4806fc3e694e41e7cb682 /src/code/audio_init_params.c | |
| parent | ffcbc0de79b00baafba7ac8ef31798c340b9ab4f (diff) | |
Clean up audio sample counts: bytes, samples, frames (#1289)
* Clean up bytes, samples, frames
* Improve macro usage
* More missed macros
* rename macro now that it crosses files
* redefine macros in terms of frames
* Another use of macro
* Fix, it's number of samples, not size
* Partial PR Suggestions
* Small change
* size to length
* Correct/Clarify comments
* remove comment
* More PR suggestions, cleanup
* Bad formatting, fixed
Diffstat (limited to 'src/code/audio_init_params.c')
| -rw-r--r-- | src/code/audio_init_params.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/code/audio_init_params.c b/src/code/audio_init_params.c index dc647406b..28ccec031 100644 --- a/src/code/audio_init_params.c +++ b/src/code/audio_init_params.c @@ -17,7 +17,7 @@ const s16 D_8014A6C0[] = { #define SFX_SOUNDFONT_2_SIZE 0x17B0 // Sizes of everything on the init pool -#define AI_BUFFERS_SIZE (AIBUF_LEN * sizeof(s16) * ARRAY_COUNT(gAudioContext.aiBuffers)) +#define AI_BUFFERS_SIZE (AIBUF_SIZE * ARRAY_COUNT(gAudioContext.aiBuffers)) #define SOUNDFONT_LIST_SIZE (NUM_SOUNDFONTS * sizeof(SoundFont)) #define PERMANENT_POOL_SIZE (SFX_SEQ_SIZE + SFX_SOUNDFONT_1_SIZE + SFX_SOUNDFONT_2_SIZE) |
