summaryrefslogtreecommitdiff
path: root/src/audio
AgeCommit message (Collapse)Author
2026-04-24Rename NoteSubEu -> NoteSampleState (#2738)Tharo
2026-03-21Comment more original names for audio functions from animal crossing (#2721)Tharo
* Comment more original names for audio functions from animal crossing * Drop delayparam, not original
2026-02-26Finish `EnMThunder` documentation (#2702)Jordan Longstaff
* Finish `EnMThunder` documentation * Boolean conversion * Hex to decimal conversions * Rename static variables
2025-06-15Macroify PlaySfxGeneral calls: introduce `SFX_PLAY_CENTERED` and ↵Dragorn421
`SFX_PLAY_AT_POS` (#2633) * Add `SFX_PLAY_CENTERED` * Add `SFX_PLAY_AT_POS`
2025-06-04Remove "z64" prefix from all headers (#2518)fig02
* z64 - a * z64 - b * z64 - c * z64 - d * z64 - e * z64 - f * z64 - g * z64 - h * z64 - i * z64 - l * z64 - m * z64 - o * z64 - p * z64 - q * z64 - r * z64 - s * z64 - t * z64 - v * restore file * fix merge * fix merge --------- Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>
2025-05-24Cleanup includes in header files (#2540)Dragorn421
* Cleanup includes in header files * include libc headers without libc/ prefix * fix * fix2 * fix3 * fix4 * some bss lol * bss * fix
2025-05-02Audio internal lib: Merge dcache.c and aisetnextbuf.c into os.c (#2522)fig02
2025-05-01Restructure audio source files (#2520)fig02
* restructure audio files * fix
2025-04-30Audio Internal Library: Document original function names from Animal ↵fig02
Crossing (#2513) * finish thread.c * load.c complete * complete seqplayer.c * format
2025-04-27Delete macros.h; Delete global.h (#2516)fig02
2025-04-26add array_count.h (#2514)fig02
2025-04-23macros.h 1/?: `PRINTF` and `T` (#2509)fig02
* create printf and translation headers * non-overlays complete * printf finished * move T macro * edit comment * fix error * fix bss * remove is_64 * fix bss
2025-04-19Remove Variables.h; Decouple z64.h from global.h (#2507)fig02
* progress * z64.h issues sorted * remove variables.h * format * n64 fix * another fix * did the wrong fix * fix libleo * fix bss * review * remove instead of comment
2025-04-16variables.h: migrate all remaining varaibles, remove other dependencies ↵fig02
except z64.h (#2505) * move remaining variables from variables.h * fix other dependencies * extra newline * fix and adjust comment * is this the problem * fix bss
2025-04-11variables.h cleaning: migrate audio variables (#2504)fig02
* migrate audio variables, fix libultra thing * remove extra newlines * fix * add required pragmas * fix bss * audio table fixes * fix bss
2025-03-27SoundMode -> SoundOutputMode (#2475)fig02
* SoundOutputMode, and move SoundSetting * missed a couple * format * move SoundSetting
2025-03-26Fix some hardcoded sfx ids (#2496)Tharo
2025-02-26Reduce dependencies on global.h (10) (#2490)mzxrules
* reduce z64.h size * fix z_cheap_proc.inc.c * ,bss * remove temp delcaration
2025-02-23Macroify MML opcodes (#2485)Dragorn421
* add defines for sequence opcodes * name aseq_cmd_id defines from the corresponding macro names * ASEQ_CMD_ID_ -> ASEQ_OPC_ * remove previous opcode defines * ASEQ_OPC_LAYER_STEP3_ -> ASEQ_OPC_LAYER_ * sync with MM and fixups * format * ASEQ_OPC_ -> ASEQ_OP_ * ASEQ_OP_CTRLFLOW_ -> ASEQ_OP_ * tab-align * ASEQ_OP_SEQUENCE_ -> ASEQ_OP_SEQ_ * ASEQ_OP_CHANNEL_ -> ASEQ_OP_CHAN_ * define MML_VERSION in the Makefile for seqplayer.c
2025-02-19Reduce overlay dependencies on global.h (8) (#2478)mzxrules
* move variables into z64environment.h * z_room.h * z64sram.h, z64ss_sram.h, z64font.h, kanread.h * z64lifemeter.h, z64debug.h, debug_arena.h * buffers.h * remove z_bgcheck global * gamealloc.h * suggestions * .bdd
2025-02-16Reduce overlay dependencies on global.h (7) (#2472)mzxrules
* z64env_flags, z64quest_hint_commands * z64cutscene_spline, z64save.h moved from z64.h * bss * pr suggestion * bss * suggestions
2025-02-15Use enums for settings in SRAM header (#2429)cadmic
* Use enums for settings in SRAM header * Fix bss * Uglify z_en_mag to match ique
2025-01-13[iQue] Define EGCS macro instead of relying on `__GNUC__` (#2423)cadmic
* [iQue] Define EGCS macro instead of relying on __GNUC__ * Revert longlong.h
2025-01-02[iQue] Build some C files with EGCS (#2396)cadmic
2024-12-26Fix iQue audio and line numbers (#2386)cadmic
2024-12-20Move const-qualified data from session_config.c to session_init.c, no longer ↵Tharo
qualify them as const and incrementally link instead (#2381)
2024-12-13[Audio 10/10] Loose ends (#2337)Tharo
* Introduce afile_sizes, generate headers of sizes for soundfonts and sequences * Initial tools/audio README * Versioning for samplebank extraction * Clean up the disassemble_sequence.py runnable interface * Add static assertions for maximum bank sizes * Boost optimization for audio tools * Samplebank XML doc * Soundfont XML doc * More docs in sampleconv for vadpcm * Various tools fixes/cleanup * VADPCM doc * Try to fix md formatting * VADPCM doc can come later * Fix merge with PR 9 * Fix blobs from MM * Try to fix bss * Try fix bss round 2 * Fix sampleconv memset bug * Suggested documentation tweaks
2024-12-02Fix some more GCC warnings, mark some bugs based on GCC warnings (#2309)Tharo
* Fix some more GCC warnings, mark some bugs based on GCC warnings * Weird formatting * Suggested changes * More weird indentation I guess * UNREACHABLE() macro, add missing NORETURNs to fault_n64.c * AVOID_UB for PAL path in z_file_nameset.c * Remove comments about return types * Remove temp no longer needed
2024-11-17Decouple Debug Features From gc-eu-mq-dbg (#2296)fig02
* rename OOT_DEBUG to DEBUG_FEATURES * makefile changes * add DEBUG_ASSETS * fix DEBUG_FEATURES usages * format * fix errors * review * fix problem and review2 * review * add DEBUG_FEATURES to DEBUG_ASSETS check * review * whoops * format
2024-10-09[ntsc-1.0/1.1] Match audio library (#2243)cadmic
* [ntsc-1.0/1.1] Match audio library * Don't include versions.h in audio table headers * Include versions.h where audio tables are used
2024-09-23[PAL N64] Miscellaneous changes (#2211)cadmic
* [PAL N64] Miscellaneous changes * Reword comment Co-authored-by: fig02 <fig02srl@gmail.com> * glitch -> Glitch --------- Co-authored-by: fig02 <fig02srl@gmail.com>
2024-09-18[PAL N64] Create macros for 50-Hz-related values (#2206)cadmic
* [PAL N64] Create macros for 50-Hz-related values * Use FRAME_RATE_DEPENDENT for player speeds and boot data too * FRAME_RATE_DEPENDENT -> FRAMERATE_CONST
2024-09-15[Audio 8/?] Check-in handwritten sequences, build sequences, automate ↵Tharo
various sfx arrays (#2137) * [Audio 8/?] Check-in handwritten sequences, build sequences, automate various sfx arrays * Fix whitespace in aseq.h * Fix sequence 0 sfx id generator * Suggested changes, adjust some MML syntax and add more instruction descriptions * Correct some formatting in aseq.h * Add the dir of the input .seq file to the list of includes to sequence assembling so that assembler-level includes like .include or .incbin work intuitively * aseq.h tweaks * MM review suggestions, aseq.h adjustments
2024-09-12[ntsc-1.2] Match ntsc-1.2 BSS and add to CI (#2187)cadmic
* Match ntsc-1.2 * Add ntsc-1.2 to CI * Apply fixes from Jenkins * Promote ntsc-1.2 to "supported" in Makefile * Declare D_80858AD8 as a u64 array * Tweak wording * Hopefully make ntsc-1.2 bss more stable * Restore segmented_address.h include
2024-09-11[ntsc-1.2] Match N64 audio tables (#2183)cadmic
* Match N64 audio tables * ifdef PERMANENT_POOL_SIZE rather than EXTRA_SIZE
2024-09-07Move audio/general.c debug bss with the rest of bss (#2152)Dragorn421
* Move audio/general.c debug bss to own file and include with the rest of bss * just inline the bss instead of include
2024-09-06Clean up uses of !PLATFORM_N64 vs PLATFORM_GC (#2134)cadmic
* Clean up uses of !PLATFORM_N64 vs PLATFORM_GC * Put N64 button colors first
2024-09-06Move button macros to include/controller.h (#2138)cadmic
* Move button macros to include/controller.h * Fix z_mag button ordering
2024-09-05Naming a function (#2124)Ozero4
* Naming a function * Naming function * Update functions.txt * Update function name * Update function name * Update function name * Update function name
2024-09-03[ntsc-1.2] Match audio (#2122)cadmic
* general.c mostly ok * match remaining audio funcs * comments * Finish matching audio --------- Co-authored-by: engineer124 <engineer124engineer124@gmail.com>
2024-08-27[Audio 6/?] Build Soundfonts and the Soundfont Table (#2056)Tharo
* [Audio 6/?] Build Soundfonts and the Soundfont Table * Improve lots of error messages * First suggested changes * Make audio build debugging more friendly Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com> * Some fixes from MM review * Make soundfont_table.h generation depend on the samplebank xmls since they are read, report from which soundfont the invalid pointer indirect warning originates from --------- Co-authored-by: Dragorn421 <Dragorn421@users.noreply.github.com>
2024-08-25In fix_bss.py, really always use BSS section start from map file (#2085)cadmic
2024-08-17[Audio 5/?] Build the Samplebank Table (#2044)Tharo
2024-08-12Add names to all typedef'd structs, unions, and enums (#2028)cadmic
* Add names to all typedef'd structs, unions, and enums * wtf vs code * Use a better regex
2024-07-18Nicer AudioSeq_SequenceChannelProcessScript match (#1996)inspectredc
* Nicer AudioSeq_SequenceChannelProcessScript match * cadmic suggestion
2024-03-29Fix various data issues in gc-eu-mq (#1921)cadmic
* Fix various data issues * D_80153D78 -> sMessageDebuggerTextboxCount
2024-03-23More data fixes (#1929)cadmic
2024-03-01No longer use asm-processor (#1824)Dragorn421
* git subrepo pull --force tools/ZAPD subrepo: subdir: "tools/ZAPD" merged: "b3bfa14cf" upstream: origin: "https://github.com/zeldaret/ZAPD.git" branch: "master" commit: "b3bfa14cf" git-subrepo: version: "0.4.6" origin: "https://github.com/ingydotnet/git-subrepo" commit: "110b9eb" * use CS_FLOAT * update csdis * update committed csdata * finish updating csdis.py * add script to reextract committed csdata * dont use asm-processor, use iconv for reencoding utf8 to eucjp * remove asm-processor csdata usage remnants * --cs-float hex * delete tempfile at end of reencode.sh (may want to rm even if compilation fails though?) * comment reencode.sh * comment CMD_F * do not break permuter guessing compile command, by not reencode.sh-wrapping compilation under PERMUTER (thanks anghelo) * fix the permuter fix * pad -> sBssDummyNeg1 * reencode.sh: rm tempfile on script exit (including on error) * renumber sBssDummy vars in zcolchk from 0 * Revert "--cs-float hex" This reverts commit 85267dc348741b67ac9c12eb60e1e764793d0bb6. * Revert BSS changes * Add linemarker to reencoded files for better error message * fix audio/general.c bss * make reencode.sh work on macOS * touch up csdis, csdis_re --------- Co-authored-by: cadmic <cadmic24@gmail.com>
2024-02-28AVOID_UB for out-of-bounds access in AudioLoad_Init (#1902)Tharo
2024-02-27Remove gSystemHeap and use _buffersSegmentEnd instead, make buffer ↵Tharo
alignments explicit for gcc (#1901) * Remove gSystemHeap and use _buffersSegmentEnd instead, make buffer alignments explicit for gcc * ALIGNEDn -> ALIGNED(n), reposition alignment attribute for PreNmiBuff * Correct positioning of ALIGNED for filter data in audio/lib/data.c * Add ALIGNED to TypenameMacros * ALIGNED(4) on same line for PreNmiBuff * Revert audio load.c change, to be submitted separately