Commit Graph

157 Commits

Author SHA1 Message Date
Jeremy Burns cf01dcddfb Merge pull request #36 from Brawmario/feature/cpp-include
Add infamous `#ifdef __cplusplus` idiom
2023-02-08 16:31:47 -07:00
Jeremy Burns 4583458108 Merge pull request #35 from Brawmario/feature/windows-test-build-instructions
Update README with Windows test build instructions
2023-02-08 16:26:48 -07:00
Jeremy Burns 2166201d1b Merge pull request #34 from Brawmario/feature/make-rom-buffer-const
Make the received rom buffer const
2023-02-08 16:24:52 -07:00
Jeremy Burns bf22fba227 Merge branch 'master' into feature/make-rom-buffer-const 2023-02-08 16:24:42 -07:00
Jeremy Burns 6278df0dd1 Merge pull request #33 from Brawmario/fix/terminate-without-audio
Avoid crash in mario_delete if audio not init
2023-02-08 16:23:25 -07:00
Renato Rotenberg b873542526 Add infamous #ifdef __cplusplus idiom 2023-02-06 21:47:13 -03:00
Renato Rotenberg 766c80a468 Add g_ prefix to is_audio_initialized 2023-02-06 21:28:21 -03:00
Renato Rotenberg 3a22ea0761 Update README with Windows test build instructions 2023-02-06 20:49:21 -03:00
Renato Rotenberg 6be7c3e34a Make the received rom buffer const 2023-02-06 20:36:40 -03:00
Renato Rotenberg a8daa21c23 Avoid crash in mario_delete if audio not init 2023-02-06 19:49:29 -03:00
jaburns c3eadb01b1 Add Godot add-on in readme 2023-02-06 09:16:36 -07:00
jaburns 83f68c8449 Add CC0 1.0 license to project 2023-02-06 09:14:50 -07:00
Jeremy Burns 4a5a984fcd Merge pull request #29 from headshot2017/master
add functions to play sound/music and more
2023-02-06 09:10:54 -07:00
headshot2017 6dfc5d1943 add function to set sound volume 2023-02-04 21:39:10 -04:00
headshot2017 80b710f482 increase cell_height and floor_lower limits
a change from ckosmic's fork that went past my radar
2023-02-03 19:25:11 -04:00
headshot2017 e7b3421fef libsm64.h must be portable 2023-02-01 22:29:02 -04:00
headshot2017 535a89bea1 marioId is an int32 2023-01-26 22:25:55 -04:00
headshot2017 349a3eb702 allow setting poison gas level
also commented out some find_water_level calls
2023-01-26 22:25:21 -04:00
headshot2017 bd2b13871d add loads of features from ckosmic fork
* set action
* set action with arg
* set animation ID (added an include in libsm64.h)
* set anim frame
* set state (to instantly change caps for example)
* set position
* set angle and faceangle
* set velocity and forward velocity
* set water level
* take damage
* heal mario
* kill mario instantly
* give mario a cap and play animation
* attack
2023-01-26 21:58:16 -04:00
headshot2017 e9a3114084 fix snoring sfx not stopping on wake up
also stops the snoring sound when mario is deleted
2023-01-26 20:17:30 -04:00
headshot2017 f4b6232496 fix mario slow climb sound 2023-01-26 20:06:01 -04:00
headshot2017 71c8910047 update readme 2023-01-26 20:03:48 -04:00
headshot2017 45c8eb1490 add libsm64 functions to play sound/music
from ckosmic's fork.
also libsm64.h will now include audio_defines.h and seq_ids.h for easy access to sound and music IDs
2023-01-26 20:00:02 -04:00
Jeremy Burns 9ae96c42f0 Merge pull request #26 from headshot2017/master
audio implementation on test program + many other improvements
2023-01-26 09:19:56 -07:00
headshot2017 43db1fb637 make GL 2.0 and 800x600 default
OpenGL 3.3 Core is available as a define: -DGL33_CORE
2023-01-25 23:18:41 -04:00
headshot2017 7b8563f6ce add world texture to GL2.0 renderer 2023-01-25 23:15:22 -04:00
headshot2017 c1031ad6c6 don't stretch viewport when resizing 2023-01-24 00:44:04 -04:00
headshot2017 405de6a367 change lastTicks start value 2023-01-23 22:56:47 -04:00
headshot2017 b758c9a037 fix deltatime calculation 2023-01-23 21:11:16 -04:00
headshot2017 b79601bb8e move SetSwapInterval call down 2023-01-23 20:59:10 -04:00
headshot2017 8eace1b904 cleanup tabs -> spaces 2023-01-12 16:55:27 -04:00
headshot2017 40215dacc1 use SDL_GameControllerButton enum instead of int casts 2023-01-12 16:52:10 -04:00
headshot2017 6e5accb909 turn audio.c and main.c into CPP files
fixes crash when trying to init audio on linux
2023-01-12 13:44:50 -04:00
headshot2017 ef13bae2fc don't init audio in context.c 2023-01-12 13:44:46 -04:00
headshot2017 986ce5f106 main.c lots of changes 2022-12-27 21:35:57 -04:00
headshot2017 c305f282de context_init args for GL ver and init SDL audio 2022-12-27 21:35:28 -04:00
headshot2017 6e8aa3dd91 add gl renderers and audio sources to makefile
also suppress unused function warning (cglm.h) and allow using 'make run' on windows
2022-12-27 21:34:01 -04:00
headshot2017 d013f61f88 get rid of implicit declaration warning 2022-12-27 21:32:15 -04:00
headshot2017 815d5382f2 add OpenGL 2.0 and 3.3 Core renderers 2022-12-27 21:30:12 -04:00
headshot2017 6433511a65 add test/audio.c and test/audio.h 2022-12-27 21:29:50 -04:00
headshot2017 4a40f66981 set cameraToObject to 0
it'll make both of your ears enjoy sounds rather than your right one only
2022-12-27 18:09:30 -04:00
headshot2017 2f361951b5 use real gAudioRandom for random jump sound, etc. 2022-12-27 18:08:26 -04:00
headshot2017 fab76290bc modify makefile to detect windows or linux 2022-12-27 18:07:46 -04:00
Jeremy Burns 9f3b7bebd3 Merge pull request #25 from MeltyPlayer/audio
Exposed audio playback functionality by adding decomp logic into libsm64.
2022-12-21 10:10:11 -07:00
MeltyPlayer de21ba18fa Included <stdint.h> so that uintptr_t is provided for the GitHub action. 2022-12-06 18:42:22 -06:00
MeltyPlayer 1f657175a3 Included a required library for using booleans, whoops. 2022-12-06 17:40:41 -06:00
MeltyPlayer 85422d9d59 Verified that audio has been initialized before playing sounds or ticking audio. 2022-12-06 17:38:17 -06:00
MeltyPlayer a81188b4ff Removed DEBUG_PRINT statements from alBnkfNew. 2022-12-06 17:27:14 -06:00
MeltyPlayer 5faeaff908 Removed some more DEBUG_PRINT statements and fixed padding. 2022-12-06 17:07:14 -06:00
MeltyPlayer 4b98663b59 Merge branch 'audio' of https://github.com/MeltyPlayer/libsm64-ext into audio 2022-12-06 16:55:47 -06:00