You've already forked HackerSM64
mirror of
https://github.com/HackerN64/HackerSM64.git
synced 2026-01-21 10:35:32 -08:00
* buffers: refresh 15 and revert to base decomp * behavior script * color helper functions * extended bounds * egeo_layout * fixed model ids * camera conf improved * message panel ucode small * graph node * level script * mathutil updates * mathutil updates (allow unused funcs) * behaviors a - beta_fish * Add librtc and fix some data declarations * Move GRUCODE define to proper location in makefile * Refresh 15 * extra * Make ROM name smaller and change messages printed on build a bit * Fix console (lol) * Update UNF to latest master * Make ucode load from .o's (and also fix Super3D) * Fix crash with rumble + custom mario model * graph node and mathutil * removed behaviors * Ldtob documentation * _Putfld labeling * area * behavior actions * camera * debug updates * bubbles * envfx snow * farcall helpers * game init * geo misc * hud * only check if VC on render init * ingame menu * revert goddard to base decomp * insn disasm * interaction documentation * level geo * level update defines * macro special objects formatting changes * main.h documentation * map parser documentation & formatting * airborne documentation * mario actions automatic documentation * mario actions cutscene documentation * mario actions moving documentation and options * mario actions object documentation and options * mario stationary documentation * mario submerged documentation * mario misc documentation * mario step: ledge grab fixes and documentation * mario documentation * memory.h documentation * moving textures * object behaviors * object collision * fix flamethrower bug * object helpers * object list processor documentation * paintings * platform displacement * print / printf * puppycam absf * puppyprint updates and formatting changes * rendering graph node performance optimizations * rumble opt and doc * hqvm back to ultrasm64 * save file documentation and unlock defines * s2d engine * reset various files to ultrasm64 * file select * intro geo documentation * screen transition documentation * segment2.h * shadow overhaul * skybox refactor * sound init: clean up define usage + documentation * spawn object optimizations and documentation * spawn sound cleanup * sram to ultrasm64 * star select cleanup * title screen cleanup * dialogs / text * rename stomp smoke * stomp smoke -> small water splash * updated README * compilation flags * optimized file positions + support function/data sections * surface collision performance improvements * surface load optimizations * camera conf documentation * Allow easier command for opening puppyprint debug * Rearranged framebuffers & fixed puppyprint console printing * Fix shadow scaling and shifting * Fix SILHOUETTE, OBJECTS_REJ, and ucode loading, also clean up render phase system a bit. * Fixed build with BETTER_HANGING off * Clean up OBJECTS_REJ ifdefs * Fix duplicate comment & graph render layers/flags bitmask * Fixed build with BETTER_HANGING off * Fix Fast64 importing by reverting sSegmentTable change * Readded missing functions that caused build errors with Mario head enabled * Fixed clang compilation issues * Add INTER mode for geo_update_layer_transparency * Fix build warnings * bugfix: miscalculation in obj_turn_toward_object * Some puppytech fixes * Further Puppycamera fixes * Fix BUGFIX_DIALOG_TIME_STOP Fixes #136 * Fix sliding platform bparams * Add LEGACY_SHADOW_IDS define for Fast64 compatibility * Apply suggested changes * Better find_in_bounds_yaw_wdw_bob_thi ifdef * Fix build warnings for unused functions * Fixed stale reference bug from obj_mark_for_deletion change * Fixed incorrect digit for 100s #145 * Change groundpound-fix define and functionality to just disable bonking * Fixed puppyroll #134 * Adjust height value for terrain angle to kick in * fixed hi score flashing * Remove menudata backup (#131) Not considered important enough to keep * Fix fread() build warning * Add COURSE_NUM_TO_INDEX to save_file_get_star_flags check in bhv_unagi_init * Fix approach_s16 return value * Use boolean defines for oCapDoScaleVertically * Make the door lock a part of the key door model to eliminate z-fighting, also reduce z fighting on numbered doors with AUTO_LOD enabled. * Move flames to LAYER_TRANSPARENT_INTER * Resolved some compiler warnings and added FALL_THROUGH define (#168) * Address some more compiler warnings with different define toggles * Remove unnecessary fallthrough attribute * fixed geo_process_billboard floating point exception * Allow water to face any direction * Initialize focOffset so that BBH doesn't crash * Removed superfluous RDP commands when switching microcodes which would override scissor * Set OBJ_FLAG_DONT_CALC_COLL_DIST on bhvUkikiCage * Fix rumble build * Fixed UNLOCK_FPS strobing * Update src/game/object_helpers.c Co-authored-by: thecozies <79979276+thecozies@users.noreply.github.com> * Update src/game/object_helpers.c Co-authored-by: thecozies <79979276+thecozies@users.noreply.github.com> * Fix LEGACY_SHADOW_IDS id conflict * Use the vanilla default value for rotating fire bars if bparam2 is 0 * START_LEVEL safeguard * Fix some drawing distance issues caused by AUTO_COLLISION_DISTANCE * Fix rumble build * Fixed spline poll code using the wrong values for keyframes * Update readme with better credits Better credits for individual contributors * add arthur * added falco and moose * add fazana * le funny typo * added S2DEX engine to credits * silhouette + axo + ratio * remove specific callouts + add auto col distance * Update data/behavior_data.c Co-authored-by: thecozies <79979276+thecozies@users.noreply.github.com> * Update data/behavior_data.c Co-authored-by: thecozies <79979276+thecozies@users.noreply.github.com> * Update data/behavior_data.c Co-authored-by: thecozies <79979276+thecozies@users.noreply.github.com> * Revert formatting changes to match vanilla decomp * Re-implement Y buffer for find_ceil * Re-implement POWER_STARS_HEAL for normal Power Stars * Start level comment & exit course comment/collapse * utilize reonucam technique for FAST_VERTICAL_CAMERA_MOVEMENT * Fix "MAX_REFERENCED_WALLS" typo * Allow stop_and_set_height_to_floor to work at any height if Mario is teleporting (#213) * Revert stop_and_set_height_to_floor to vanilla Fixes #208 * Fixed sAudioEnabled so that it disables audio CPU processing as well * Fixed puppyprint debug RDP us calculations * Renamed sAudioEnabled to gAudioEnabled * Replaced mtxf_to_mtx_asm with an equivalent implementation that supports WORLD_SCALE * Moved extended bounds and world scale configuration to a new config_world.h file * Default all objects to non-rej (#227) Fixes #221 (Default all objects to non-rej) * Fix #221 * Fix VISUAL_DEBUG breaking/crashing when OBJECTS_REJ is disabled (#211) * Fix VISUAL_DEBUG breaking/crashing when OBJECTS_REJ is disabled * Change vtl decrement in visual_surface_display from 6 to 3 Fixes #207 * Make area in SL igloo wider to prevent a softlock (#233) Fixes #210 * Fix coin formation coins being deleted if they spawn in the middle of a floor, also fix TTM slide coin position (#232) Fixes #201 * Make UNLOCK_ALL apply to more things * Fix wrong ifdef/ifndef in bhv_invisible_objects_under_bridge_init * Change chain chomp load/unload distances depending on number of segments (#237) Fixes #192 * added WATER_PLUNGE_UPWARP define * Add reonucam patch (#239) * added reonucam patch Fixes #218 * Fix how shadows handle water/transparency/height (#228) * Fix how shadows handle water/transparency/height * Change shadow check for flying carpets from a level specific check to a oPlatformOnTrackType check Fixes #179 * added reonucam credit * delete unnecesary patches * Apply suggested changes * murdered more patches * UNLOCK_ALL unlocks the cap boxes * UNLOCK_ALL unlocks cap boxes (slightly more epic edition) * revert ceil buffer * Renamed HD_INTRO_TEXTURES define, separated intro floombas * prevent double definition of floombas * actually prevent floomba redefinition * Develop/refactor default defines (#242) * Changed default config options * Added build dir to includePaths for pngs * disable NO_SLEEP by default * Disable puppyprint by default Sorry fazana 😔 * fix typos * add comment about BETTER_REVERB console perf * disable blue coin switch retry by default * Update config_audio.h Co-authored-by: Reonu <danileon95@gmail.com> Co-authored-by: Mr-Wiseguy <68165316+Mr-Wiseguy@users.noreply.github.com> * revert air step line to vanilla to fix bitfs scaling platform issue (#247) Fixes #200 * Fix stuttering on thin slopes (#248) * Fix stuttering on thin slopes * Revert vec3f_find_ceil calls to vanilla * Rename vec3f_find_ceil to find_mario_ceil * Update src/engine/surface_collision.h Fixes #249 * Swap static and dynamic surface checks back to vanilla order (#253) * Swap static and dynamic surface checks back to vanilla order * re-enable DISABLE_ALL config Fixes #251 #252 * Fixed save and quitting while in widescreen (#257) * Fixed save and quitting while in widescreen * use define for the level * all my homies hate ifdefs * skip wall offsets < 0 (#255) Fixes #255 * #264: Document non-stop stars' issues (#267) * #264: Document non-stop stars' issues * Update include/config/config_game.h * nonstop vanilla comment * derive margin_radius from radius after capping at 200 (#266) Fixes #259 * Config cleanup/refactor (#269) * Moved puppyprint define to graphics / rearranged some debug defines for ease of access * Moved compatibility safeguards to config_safeguards.h * spacing and comment formatting * #272 Move GFX_POOL_SIZE to config_graphics.h * disable EASIER_DIALOG_TRIGGER by default * prevent redefining warnings * small ifdef typo * changed ifndef to undefs Fixes #262 Fixes #272 * Improved movement config documentation related to turning around (#271) Fixes #270 * rename CUSTOM_DEBUG, add comments (#275) * Update README.md (#277) * v2.0.0 Co-authored-by: CrashOveride95 <crashoveride953@gmail.com> Co-authored-by: Arceveti <73617174+Arceveti@users.noreply.github.com> Co-authored-by: n64 <n64> Co-authored-by: Fazana <52551480+FazanaJ@users.noreply.github.com> Co-authored-by: Mr-Wiseguy <mrwiseguyromhacking@gmail.com> Co-authored-by: aglab2 <aglab3@gmail.com> Co-authored-by: gheskett <gheskett@gmail.com> Co-authored-by: Reonu <danileon95@gmail.com> Co-authored-by: Axollyon <20480418+Axollyon@users.noreply.github.com> Co-authored-by: Mr-Wiseguy <68165316+Mr-Wiseguy@users.noreply.github.com>
319 lines
8.1 KiB
Diff
319 lines
8.1 KiB
Diff
diff --git a/libaudiofile/FileHandle.cpp b/libaudiofile/FileHandle.cpp
|
|
index 8562d4b..5d6342a 100644
|
|
--- a/libaudiofile/FileHandle.cpp
|
|
+++ b/libaudiofile/FileHandle.cpp
|
|
@@ -74,26 +74,8 @@ _AFfilehandle *_AFfilehandle::create(int fileFormat)
|
|
case AF_FILE_AIFF:
|
|
case AF_FILE_AIFFC:
|
|
return new AIFFFile();
|
|
- case AF_FILE_NEXTSND:
|
|
- return new NeXTFile();
|
|
case AF_FILE_WAVE:
|
|
return new WAVEFile();
|
|
- case AF_FILE_BICSF:
|
|
- return new IRCAMFile();
|
|
- case AF_FILE_AVR:
|
|
- return new AVRFile();
|
|
- case AF_FILE_IFF_8SVX:
|
|
- return new IFFFile();
|
|
- case AF_FILE_SAMPLEVISION:
|
|
- return new SampleVisionFile();
|
|
- case AF_FILE_VOC:
|
|
- return new VOCFile();
|
|
- case AF_FILE_NIST_SPHERE:
|
|
- return new NISTFile();
|
|
- case AF_FILE_CAF:
|
|
- return new CAFFile();
|
|
- case AF_FILE_FLAC:
|
|
- return new FLACFile();
|
|
default:
|
|
return NULL;
|
|
}
|
|
diff --git a/libaudiofile/aupv.c b/libaudiofile/aupv.c
|
|
index 64e798b..374838b 100644
|
|
--- a/libaudiofile/aupv.c
|
|
+++ b/libaudiofile/aupv.c
|
|
@@ -47,7 +47,7 @@ AUpvlist AUpvnew (int maxitems)
|
|
if (aupvlist == NULL)
|
|
return AU_NULL_PVLIST;
|
|
|
|
- aupvlist->items = calloc(maxitems, sizeof (struct _AUpvitem));
|
|
+ aupvlist->items = (struct _AUpvitem *)calloc(maxitems, sizeof (struct _AUpvitem));
|
|
|
|
assert(aupvlist->items);
|
|
if (aupvlist->items == NULL)
|
|
diff --git a/libaudiofile/g711.c b/libaudiofile/g711.c
|
|
index 8fb2323..1b323ec 100644
|
|
--- a/libaudiofile/g711.c
|
|
+++ b/libaudiofile/g711.c
|
|
@@ -74,8 +74,7 @@ static int search(int val, const short *table, int size)
|
|
* John Wiley & Sons, pps 98-111 and 472-476.
|
|
*/
|
|
unsigned char
|
|
-_af_linear2alaw(pcm_val)
|
|
- int pcm_val; /* 2's complement (16-bit range) */
|
|
+_af_linear2alaw(int pcm_val)
|
|
{
|
|
int mask;
|
|
int seg;
|
|
@@ -110,8 +109,7 @@ _af_linear2alaw(pcm_val)
|
|
*
|
|
*/
|
|
int
|
|
-_af_alaw2linear(a_val)
|
|
- unsigned char a_val;
|
|
+_af_alaw2linear(unsigned char a_val)
|
|
{
|
|
int t;
|
|
int seg;
|
|
diff --git a/libaudiofile/units.cpp b/libaudiofile/units.cpp
|
|
index ffd0a63..51d2dc3 100644
|
|
--- a/libaudiofile/units.cpp
|
|
+++ b/libaudiofile/units.cpp
|
|
@@ -32,24 +32,12 @@
|
|
#include "units.h"
|
|
|
|
#include "AIFF.h"
|
|
-#include "AVR.h"
|
|
-#include "CAF.h"
|
|
-#include "FLACFile.h"
|
|
-#include "IFF.h"
|
|
-#include "IRCAM.h"
|
|
-#include "NeXT.h"
|
|
-#include "NIST.h"
|
|
#include "Raw.h"
|
|
-#include "SampleVision.h"
|
|
-#include "VOC.h"
|
|
#include "WAVE.h"
|
|
|
|
#include "compression.h"
|
|
|
|
-#include "modules/ALAC.h"
|
|
-#include "modules/FLAC.h"
|
|
#include "modules/G711.h"
|
|
-#include "modules/IMA.h"
|
|
#include "modules/MSADPCM.h"
|
|
#include "modules/PCM.h"
|
|
|
|
@@ -99,20 +87,6 @@ const Unit _af_units[_AF_NUM_UNITS] =
|
|
_AF_AIFF_NUM_INSTPARAMS,
|
|
_af_aiff_inst_params
|
|
},
|
|
- {
|
|
- AF_FILE_NEXTSND,
|
|
- "NeXT .snd/Sun .au", "NeXT .snd/Sun .au Format", "next",
|
|
- true,
|
|
- NeXTFile::completeSetup,
|
|
- NeXTFile::recognize,
|
|
- AF_SAMPFMT_TWOSCOMP, 16,
|
|
- _AF_NEXT_NUM_COMPTYPES,
|
|
- _af_next_compression_types,
|
|
- 0, /* maximum marker count */
|
|
- 0, /* maximum instrument count */
|
|
- 0, /* maximum number of loops per instrument */
|
|
- 0, NULL
|
|
- },
|
|
{
|
|
AF_FILE_WAVE,
|
|
"MS RIFF WAVE", "Microsoft RIFF WAVE Format", "wave",
|
|
@@ -128,144 +102,6 @@ const Unit _af_units[_AF_NUM_UNITS] =
|
|
_AF_WAVE_NUM_INSTPARAMS,
|
|
_af_wave_inst_params
|
|
},
|
|
- {
|
|
- AF_FILE_IRCAM,
|
|
- "BICSF", "Berkeley/IRCAM/CARL Sound Format", "bicsf",
|
|
- true,
|
|
- IRCAMFile::completeSetup,
|
|
- IRCAMFile::recognize,
|
|
- AF_SAMPFMT_TWOSCOMP, 16,
|
|
- _AF_IRCAM_NUM_COMPTYPES,
|
|
- _af_ircam_compression_types,
|
|
- 0, // maximum marker count
|
|
- 0, // maximum instrument count
|
|
- 0, // maximum number of loops per instrument
|
|
- 0, // number of instrument parameters
|
|
- NULL // instrument parameters
|
|
- },
|
|
- {
|
|
- AF_FILE_MPEG1BITSTREAM,
|
|
- "MPEG", "MPEG Audio Bitstream", "mpeg",
|
|
- false
|
|
- },
|
|
- {
|
|
- AF_FILE_SOUNDDESIGNER1,
|
|
- "Sound Designer 1", "Sound Designer 1 File Format", "sd1",
|
|
- false
|
|
- },
|
|
- {
|
|
- AF_FILE_SOUNDDESIGNER2,
|
|
- "Sound Designer 2", "Sound Designer 2 File Format", "sd2",
|
|
- false
|
|
- },
|
|
- {
|
|
- AF_FILE_AVR,
|
|
- "AVR", "Audio Visual Research File Format", "avr",
|
|
- true,
|
|
- AVRFile::completeSetup,
|
|
- AVRFile::recognize,
|
|
- AF_SAMPFMT_TWOSCOMP, 16,
|
|
- 0, /* number of compression types */
|
|
- NULL, /* compression types */
|
|
- 0, /* maximum marker count */
|
|
- 0, /* maximum instrument count */
|
|
- 0, /* maximum number of loops per instrument */
|
|
- 0, /* number of instrument parameters */
|
|
- },
|
|
- {
|
|
- AF_FILE_IFF_8SVX,
|
|
- "IFF/8SVX", "Amiga IFF/8SVX Sound File Format", "iff",
|
|
- true,
|
|
- IFFFile::completeSetup,
|
|
- IFFFile::recognize,
|
|
- AF_SAMPFMT_TWOSCOMP, 8,
|
|
- 0, /* number of compression types */
|
|
- NULL, /* compression types */
|
|
- 0, /* maximum marker count */
|
|
- 0, /* maximum instrument count */
|
|
- 0, /* maximum number of loops per instrument */
|
|
- 0, /* number of instrument parameters */
|
|
- },
|
|
- {
|
|
- AF_FILE_SAMPLEVISION,
|
|
- "Sample Vision", "Sample Vision File Format", "smp",
|
|
- true,
|
|
- SampleVisionFile::completeSetup,
|
|
- SampleVisionFile::recognize,
|
|
- AF_SAMPFMT_TWOSCOMP, 16,
|
|
- 0, // number of compression types
|
|
- NULL, // compression types
|
|
- 0, // maximum marker count
|
|
- 0, // maximum instrument count
|
|
- 0, // maximum number of loops per instrument
|
|
- 0, // number of instrument parameters
|
|
- NULL // instrument parameters
|
|
- },
|
|
- {
|
|
- AF_FILE_VOC,
|
|
- "VOC", "Creative Voice File Format", "voc",
|
|
- true,
|
|
- VOCFile::completeSetup,
|
|
- VOCFile::recognize,
|
|
- AF_SAMPFMT_TWOSCOMP, 16,
|
|
- _AF_VOC_NUM_COMPTYPES,
|
|
- _af_voc_compression_types,
|
|
- 0, // maximum marker count
|
|
- 0, // maximum instrument count
|
|
- 0, // maximum number of loops per instrument
|
|
- 0, // number of instrument parameters
|
|
- NULL // instrument parameters
|
|
- },
|
|
- {
|
|
- AF_FILE_NIST_SPHERE,
|
|
- "NIST SPHERE", "NIST SPHERE File Format", "nist",
|
|
- true,
|
|
- NISTFile::completeSetup,
|
|
- NISTFile::recognize,
|
|
- AF_SAMPFMT_TWOSCOMP, 16,
|
|
- 0, /* number of compression types */
|
|
- NULL, /* compression types */
|
|
- 0, /* maximum marker count */
|
|
- 0, /* maximum instrument count */
|
|
- 0, /* maximum number of loops per instrument */
|
|
- 0, /* number of instrument parameters */
|
|
- NULL /* instrument parameters */
|
|
- },
|
|
- {
|
|
- AF_FILE_SOUNDFONT2,
|
|
- "SoundFont 2", "SoundFont 2 File Format", "sf2",
|
|
- false
|
|
- },
|
|
- {
|
|
- AF_FILE_CAF,
|
|
- "CAF", "Core Audio Format", "caf",
|
|
- true,
|
|
- CAFFile::completeSetup,
|
|
- CAFFile::recognize,
|
|
- AF_SAMPFMT_TWOSCOMP, 16,
|
|
- _AF_CAF_NUM_COMPTYPES,
|
|
- _af_caf_compression_types,
|
|
- 0, // maximum marker count
|
|
- 0, // maximum instrument count
|
|
- 0, // maximum number of loops per instrument
|
|
- 0, // number of instrument parameters
|
|
- NULL // instrument parameters
|
|
- },
|
|
- {
|
|
- AF_FILE_FLAC,
|
|
- "FLAC", "Free Lossless Audio Codec", "flac",
|
|
- true,
|
|
- FLACFile::completeSetup,
|
|
- FLACFile::recognize,
|
|
- AF_SAMPFMT_TWOSCOMP, 16,
|
|
- _AF_FLAC_NUM_COMPTYPES,
|
|
- _af_flac_compression_types,
|
|
- 0, // maximum marker count
|
|
- 0, // maximum instrument count
|
|
- 0, // maximum number of loops per instrument
|
|
- 0, // number of instrument parameters
|
|
- NULL // instrument parameters
|
|
- }
|
|
};
|
|
|
|
const CompressionUnit _af_compression[_AF_NUM_COMPRESSION] =
|
|
@@ -309,19 +145,6 @@ const CompressionUnit _af_compression[_AF_NUM_COMPRESSION] =
|
|
_af_g711_format_ok,
|
|
_AFg711initcompress, _AFg711initdecompress
|
|
},
|
|
- {
|
|
- AF_COMPRESSION_IMA,
|
|
- true,
|
|
- "ima4", /* label */
|
|
- "IMA ADPCM", /* short name */
|
|
- "IMA DVI ADPCM",
|
|
- 4.0,
|
|
- AF_SAMPFMT_TWOSCOMP, 16,
|
|
- true, /* needsRebuffer */
|
|
- false, /* multiple_of */
|
|
- _af_ima_adpcm_format_ok,
|
|
- _af_ima_adpcm_init_compress, _af_ima_adpcm_init_decompress
|
|
- },
|
|
{
|
|
AF_COMPRESSION_MS_ADPCM,
|
|
true,
|
|
@@ -335,34 +158,4 @@ const CompressionUnit _af_compression[_AF_NUM_COMPRESSION] =
|
|
_af_ms_adpcm_format_ok,
|
|
_af_ms_adpcm_init_compress, _af_ms_adpcm_init_decompress
|
|
},
|
|
- {
|
|
- AF_COMPRESSION_FLAC,
|
|
-#if ENABLE(FLAC)
|
|
- true,
|
|
-#else
|
|
- false,
|
|
-#endif
|
|
- "flac", // label
|
|
- "FLAC", // short name
|
|
- "Free Lossless Audio Codec",
|
|
- 1.0,
|
|
- AF_SAMPFMT_TWOSCOMP, 16,
|
|
- false, // needsRebuffer
|
|
- false, // multiple_of
|
|
- _af_flac_format_ok,
|
|
- _af_flac_init_compress, _af_flac_init_decompress
|
|
- },
|
|
- {
|
|
- AF_COMPRESSION_ALAC,
|
|
- true,
|
|
- "alac", // label
|
|
- "ALAC", // short name
|
|
- "Apple Lossless Audio Codec",
|
|
- 1.0,
|
|
- AF_SAMPFMT_TWOSCOMP, 16,
|
|
- true, // needsRebuffer
|
|
- false, // multiple_of
|
|
- _af_alac_format_ok,
|
|
- _af_alac_init_compress, _af_alac_init_decompress
|
|
- }
|
|
};
|