Testing audio cutscene controls
This commit is contained in:
@@ -107,3 +107,4 @@ yarn.lock
|
|||||||
/assets/test
|
/assets/test
|
||||||
/tools_old
|
/tools_old
|
||||||
/assets/test.png
|
/assets/test.png
|
||||||
|
/assets/audio/boa.mp3
|
||||||
@@ -9,15 +9,18 @@ following packages, depending on your system;
|
|||||||
|
|
||||||
Fedora;
|
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;
|
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;
|
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": [
|
"items": [
|
||||||
|
{
|
||||||
|
"type": "AUDIO_PLAY",
|
||||||
|
"file": "audio/boa.mp3",
|
||||||
|
"channel": "BGM_0",
|
||||||
|
"volume": 1.0,
|
||||||
|
"pan": 0.0,
|
||||||
|
"looping": true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"type": "MODAL",
|
"type": "MODAL",
|
||||||
"title": "main_menu.checking_save.title",
|
"title": "main_menu.checking_save.title",
|
||||||
|
|||||||
@@ -52,16 +52,6 @@ errorret_t engineInit(const int32_t argc, const char_t **argv) {
|
|||||||
#endif
|
#endif
|
||||||
errorChain(sceneInit());
|
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");
|
consolePrint("Engine initialized");
|
||||||
|
|
||||||
#ifdef DUSK_ASSERTIONS_FAKED
|
#ifdef DUSK_ASSERTIONS_FAKED
|
||||||
|
|||||||
Reference in New Issue
Block a user