sm64coopdx/autogen
jayden 5dabcaa313
Some checks are pending
Build coop / build-linux (push) Waiting to run
Build coop / build-steamos (push) Waiting to run
Build coop / build-windows-opengl (push) Waiting to run
Build coop / build-windows-directx (push) Waiting to run
Build coop / build-macos-arm (push) Waiting to run
Build coop / build-macos-intel (push) Waiting to run
Add audio_stream_get/set_volume_channel (#1205)
Allows modders to play audio streams on channels other than level background music.
4 constants have been added for this purpose:
- `MOD_AUDIO_CHANNEL_MASTER` - sound is only affected by master volume
- `MOD_AUDIO_CHANNEL_MUSIC` - sound is affected by music volume, same as previous behaviour
- `MOD_AUDIO_CHANNEL_SFX` - sound is affected by sfx volume, same as sample behaviour
- `MOD_AUDIO_CHANNEL_ENV` - sound is affected by env volume 
This was done instead of using the existing `SEQ_PLAYER_*` constants to avoid confusion and because there isn't a `NONE`/`MASTER` option.

Additionally, sets the default to `MOD_AUDIO_CHANNEL_MUSIC` as to not break compatibility.

```lua
audio_stream_set_volume_channel(stream, MOD_AUDIO_CHANNEL_SFX) -- wow its just like a sample
audio_stream_get_volume_channel(stream) -- returns MOD_AUDIO_CHANNEL_SFX (its actually 2)
```
2026-05-03 17:59:11 +10:00
..
lua_constants Add easing functions autocompletion for math.tween 2026-03-01 23:28:19 +01:00
lua_definitions Add audio_stream_get/set_volume_channel (#1205) 2026-05-03 17:59:11 +10:00
autogen.sh ModFs improvements (#907) 2025-10-21 19:42:06 +02:00
common.py CObject Properties (#1068) 2026-05-01 22:12:51 -04:00
convert_constants.py Add audio_stream_get/set_volume_channel (#1205) 2026-05-03 17:59:11 +10:00
convert_functions.py Refactor collision surface systems and add the ability to add/remove/move surfaces (#1143) 2026-05-02 14:58:46 -04:00
convert_structs.py Add audio_stream_get/set_volume_channel (#1205) 2026-05-03 17:59:11 +10:00
extract_constants.py allow Lua to manipulate displaylists and vertices (#675) 2025-02-27 14:27:55 +10:00
extract_display_lists.py geo_num3_switch is not a display list 2025-08-07 14:22:31 +02:00
extract_functions.py More Optimizations (#792) 2025-05-16 20:27:49 -04:00
extract_object_fields.py allow Lua to manipulate displaylists and vertices (#675) 2025-02-27 14:27:55 +10:00
extract_structs.py CObject Properties (#1068) 2026-05-01 22:12:51 -04:00
gen_hooks.py make hook errors report the culprit file 2026-02-16 11:24:12 +10:00
gen_math.py Multi-return from C and other autogen changes (#1044) 2025-12-19 20:27:44 -05:00
gen_sound.py Fixed Wario sounds pitch/speed 2022-02-15 00:51:19 -08:00
vec_types.py More math improvements (#820) 2025-05-29 02:52:31 +02:00