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_data.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_data.c')
| -rw-r--r-- | src/code/audio_data.c | 67 |
1 files changed, 64 insertions, 3 deletions
diff --git a/src/code/audio_data.c b/src/code/audio_data.c index 679f51509..7aec37494 100644 --- a/src/code/audio_data.c +++ b/src/code/audio_data.c @@ -557,9 +557,70 @@ NoteSubEu gDefaultNoteSub = { }; u16 gHeadsetPanQuantization[64] = { - 60, 58, 56, 54, 52, 50, 48, 46, 44, 42, 40, 38, 36, 34, 32, 30, 28, 26, 24, 22, 20, 18, - 16, 14, 12, 10, 8, 6, 4, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 30 * SAMPLE_SIZE, + 29 * SAMPLE_SIZE, + 28 * SAMPLE_SIZE, + 27 * SAMPLE_SIZE, + 26 * SAMPLE_SIZE, + 25 * SAMPLE_SIZE, + 24 * SAMPLE_SIZE, + 23 * SAMPLE_SIZE, + 22 * SAMPLE_SIZE, + 21 * SAMPLE_SIZE, + 20 * SAMPLE_SIZE, + 19 * SAMPLE_SIZE, + 18 * SAMPLE_SIZE, + 17 * SAMPLE_SIZE, + 16 * SAMPLE_SIZE, + 15 * SAMPLE_SIZE, + 14 * SAMPLE_SIZE, + 13 * SAMPLE_SIZE, + 12 * SAMPLE_SIZE, + 11 * SAMPLE_SIZE, + 10 * SAMPLE_SIZE, + 9 * SAMPLE_SIZE, + 8 * SAMPLE_SIZE, + 7 * SAMPLE_SIZE, + 6 * SAMPLE_SIZE, + 5 * SAMPLE_SIZE, + 4 * SAMPLE_SIZE, + 3 * SAMPLE_SIZE, + 2 * SAMPLE_SIZE, + 1 * SAMPLE_SIZE, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, }; s32 D_8012FBA4 = 0; |
