Testing audio cutscene controls

This commit is contained in:
2026-09-02 18:49:12 -05:00
parent 9364768397
commit fe2ef92ef3
5 changed files with 16 additions and 14 deletions
+1
View File
@@ -107,3 +107,4 @@ yarn.lock
/assets/test
/tools_old
/assets/test.png
/assets/audio/boa.mp3
+6 -3
View File
@@ -9,15 +9,18 @@ following packages, depending on your system;
Fedora;
```
sudo dnf install git make gcc cmake python python-polib python3-pillow python3-dotenv python3-numpy python-qt5 python3-pyopengl SDL2-devel zlib-devel libzip-devel bzip2-devel openssl-devel lzma-sdk-devel xz xz-devel lua-devel
sudo dnf install git make gcc cmake python python-polib python3-pillow python3-dotenv python3-numpy python-qt5 python3-pyopengl SDL2-devel zlib-devel libzip-devel bzip2-devel openssl-devel lzma-sdk-devel xz xz-devel lua-devel libmad-devel
```
`libmad-devel` (used for MP3 decoding) is GPL-licensed and ships in the
[RPM Fusion](https://rpmfusion.org/) free repository rather than Fedora's
base repos - make sure RPM Fusion is enabled first.
Ubuntu;
```
sudo apt-get install git build-essential gcc python python-polib python3-pillow python3-dotenv python3-numpy python3-pyqt5 python3-opengl
sudo apt-get install git build-essential gcc python python-polib python3-pillow python3-dotenv python3-numpy python3-pyqt5 python3-opengl libmad0-dev
```
Arch Linux;
```
sudo pacman -S git base-devel gcc python python-polib python-pillow python-dotenv python-numpy python-pyqt5 python-opengl
sudo pacman -S git base-devel gcc python python-polib python-pillow python-dotenv python-numpy python-pyqt5 python-opengl libmad
```
Binary file not shown.
@@ -1,5 +1,13 @@
{
"items": [
{
"type": "AUDIO_PLAY",
"file": "audio/boa.mp3",
"channel": "BGM_0",
"volume": 1.0,
"pan": 0.0,
"looping": true
},
{
"type": "MODAL",
"title": "main_menu.checking_save.title",
-10
View File
@@ -52,16 +52,6 @@ errorret_t engineInit(const int32_t argc, const char_t **argv) {
#endif
errorChain(sceneInit());
// Smoke-tests the audio mixer end to end (asset loading -> PCM/MP3
// streaming -> platform playback) against a real MP3 asset rather than
// synthesizing PCM data at runtime.
audioMixerPlay(
"audio/boa.mp3",
AUDIO_MIXER_CHANNEL_BGM_0,
1.0f,
AUDIO_STREAM_CENTER
);
consolePrint("Engine initialized");
#ifdef DUSK_ASSERTIONS_FAKED