mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2026-05-31 21:21:07 +00:00
|
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
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) ``` |
||
|---|---|---|
| .. | ||
| constants.lua | ||
| functions.lua | ||
| manual.lua | ||
| structs.lua | ||