Use audacity to make raw file directly

This commit is contained in:
Pk11 2020-12-24 00:38:17 -06:00
parent 1a2ea71d18
commit d93c23e719

View File

@ -40,12 +40,18 @@ You must set `PlayStartupJingle=1` in your `theme.ini` for the startup jingle to
## Menu BGM
To create custom menu BGM, you will need to install [SoX](https://sourceforge.net/projects/sox/files/sox/14.4.2/sox-14.4.2-win32.exe/download).
Menu BGM is created from **menu.wav**, which must be **16-bit 16kHz Mono**. You can use [Audacity](https://www.audacityteam.org/download/) for example to convert to this format. Once the file is loaded in Audacity, change the **Project Rate (Hz)** to **16000**, then press **Shift+M**, and change the **Format** to **16-bit PCM**.
Menu BGM needs to be a **16-bit 16kHz Mono** raw PCM file. You can use [Audacity](https://www.audacityteam.org/download/) for example to convert to this format. Once the file is loaded in Audacity, change the **Project Rate (Hz)** to **16000**, then press **Shift+M**, and change the **Format** to **16-bit PCM**.
If your file is in Stereo, you should also go to **Tracks > Mix > Mix Stereo down to Mono**.
If SoX is installed, once you run `make`, you will get a `bgm.pcm.raw` file, that can be copied to the *sound* subfolder in your theme folder.
To export in the correct format, do:
1. Select `File` > `Export` > `Export Audio`
1. Set `File Type` to `Other uncompressed files`
1. Set `Header` to `RAW (header-less)`
1. Set `Encoding` to `Signed 16-bit PCM`
1. Set the output name to `bgm.pcm.raw` and click `Save`
1. Click `OK` to the metadata editing
Now you have a `bgm.pcm.raw` file that can be copied to the *sound* subfolder in your theme folder.
Unlike sfx.bin, *bgm.pcm.raw* can be arbitrarily large.