mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-04 23:14:37 +00:00
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
This commit is contained in:
parent
ffcbc0de79
commit
423fec9f79
6 changed files with 246 additions and 157 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue