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_load.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_load.c')
| -rw-r--r-- | src/code/audio_load.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/code/audio_load.c b/src/code/audio_load.c index 8c77f3beb..73de88411 100644 --- a/src/code/audio_load.c +++ b/src/code/audio_load.c @@ -1200,8 +1200,8 @@ void AudioLoad_Init(void* heap, u32 heapSize) { AudioHeap_InitMainPools(gAudioHeapInitSizes.initPoolSize); // Initialize the audio interface buffers - for (i = 0; i < 3; i++) { - gAudioContext.aiBuffers[i] = AudioHeap_AllocZeroed(&gAudioContext.initPool, AIBUF_LEN * sizeof(s16)); + for (i = 0; i < ARRAY_COUNT(gAudioContext.aiBuffers); i++) { + gAudioContext.aiBuffers[i] = AudioHeap_AllocZeroed(&gAudioContext.initPool, AIBUF_SIZE); } // Set audio tables pointers |
