mirror of
https://github.com/rvtr/wiki.git
synced 2025-10-31 06:31:13 -04:00
Also remove Danish, German, Russian, and Chinese (Simplified) pages as none of them even have a single page that's 100% translated
73 lines
4.4 KiB
Markdown
73 lines
4.4 KiB
Markdown
---
|
|
lang: es-ES
|
|
layout: wiki
|
|
section: twilightmenu
|
|
category: customization
|
|
title: Skins de DSi / 3DS - SFX personalizados
|
|
description: Cómo usar música de fondo y efectos de sonido personalizados en las skins de DSi y 3DS de TWiLight Menu++
|
|
---
|
|
|
|
TWiLightMenu permite usar sonidos personalizados en los temas. Coloca los archivos de sonido en el subdirectorio `sound` de tu tema. Por ejemplo, para el tema `white`, pondrías los archivos en `themes/white/sound/sfx.bin` y `themes/sound/bgm.pcm.raw` respectivamente. Ambos archivos son opcionales, si falta alguno se usarán los predeterminados. También debes poner en la configuración la opción de música a "Theme".
|
|
|
|
En esta guía se asume que tienes instalado devkitPro con mmutil. Puedes descargarlo en la página de [devkitPro](https://devkitpro.org/wiki/Getting_Started).
|
|
|
|
## Banco de sonidos
|
|
El banco de sonidos contiene distintos efectos como el de seleccionar un icono, etc.
|
|
|
|
| Archivo | Descripción |
|
|
| ----------- | ------------------------------------------------------------------------------------------------ |
|
|
| startup.wav | Suena al inicio. Ve a la sección de [Sonido de inicio](#startup-sound) para más detalles |
|
|
| back.wav | Volver |
|
|
| launch.wav | Suena al abrir un juego |
|
|
| select.wav | Suena al mover el cursor |
|
|
| wrong.wav | Suena al llegar al final de la página |
|
|
| switch.wav | Suena al cambiar de página |
|
|
| stop.wav | Suena en el Tema DSi cuando el cursor deja de moverse |
|
|
| bgm.pcm.raw | No pertenece al banco de sonidos. Ve a la sección [Música del menú](#menu-bgm) para más detalles |
|
|
|
|
Ejecuta `make` para crear el banco de sonidos. Todos los archivos mencionados excepto *bgm.pcm.raw* son necesarios, pero pueden ser silencio.
|
|
|
|
El *sfx.bin* resultante **debe tener menos de 512000B = 512 kB**. Si es más grande, puede provocar crasheos o cortes en los sonidos.
|
|
|
|
### Sonido de inicio
|
|
Mientras que los otros sonidos funcionan con cualquier archivo WAV, el de inicio tiene que estar en un formato específico para funcionar correctamente, o en otro caso habrá un silencio entre el sonido de inicio y el comienzo de la música de fondo.
|
|
|
|
El archivo startup.wav debe ser de **16-bit 16 kHz**. Puedes usar [Audacity](https://www.audacityteam.org/download/) para convertirlo a este formato. Una vez que hayas cargado el archivo en Audacity, cambia el **Project Rate (Hz)** a **16000**, después pulsa **Shift+M**, y cambia **Format** a **16-bit PCM**.
|
|
|
|
Si tu archivo es estéreo, debes ir a **Tracks > Mix > Mix Stereo down to Mono**.
|
|
|
|
Debes poner `PlayStartupJingle=1` en tu `theme.ini` para que suene.
|
|
|
|
|
|
## Música del menú
|
|
La música del menú debe ser un archivo PCM de **16-bit 16 kHz Mono**. Below are two methods for converting audio files into that format.
|
|
|
|
Unlike sfx.bin, *bgm.pcm.raw* can be arbitrarily large.
|
|
|
|
### ffmpeg
|
|
The simplest way to convert music for use in TWiLight Menu++ is to run this [ffmpeg](https://ffmpeg.org) command in a terminal:
|
|
|
|
```bash
|
|
ffmpeg -i [input file] -f s16le -acodec pcm_s16le -ac 1 -ar 16k bgm.pcm.raw
|
|
```
|
|
|
|
Replace `[input file]` with the name of the file you want to convert. You can usually do this by simply dragging the file onto the terminal window with the cursor in the correct location.
|
|
|
|
### Audacity
|
|
If you don't want to use the command line you can also convert using [Audacity](https://www.audacityteam.org/download/).
|
|
|
|
To convert the audio:
|
|
1. Load the file in Audacity
|
|
1. If your file is in stereo, click on the song then select `Tracks` > `Mix` > `Mix Stereo down to Mono`
|
|
1. Change the `Project Rate (Hz)` in the bottom left to `16000`
|
|
|
|
To export in the correct format:
|
|
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.
|