Hola a todos, os presento mi problema. Cuando inicio el Moonlight me sigue sonando la musica de fondo del menu de RetroPie. La opcion mas facil seria quitarla pero me he currado una seleccion musical y seria una pena quitarla.
He encontrado un archivo que se llama backgroundmusic.py y segun la poca informacion que he encontrado por Google entiendo que cuando se inicia un programa de esta lista la musica se para, he probado escribiendo "steam" y "moonlight" pero no funciona.
#TODO: Fill in all of the current RetroPie Emulator process names in this list.
emulatornames = ["retroarch","ags","uae4all2","uae4arm","capricerpi","linapple","hatari","stella","atari800","xroar","vice","daphne","reicast"...]
Alguna idea?
Musica de RetroPie sigue sonando cuando inicio Moonlight.
-
- Pi Omega
- Mensajes: 66
- Registrado: 08 Abr 2017, 05:47
- Agradecido: 0
- Agradecimiento recibido: 0
edita el archivo music.py
agrega el emulador de NDS "drastic"
Sobre moonlight, no tengo idea lo que es xD
Saludos!
agrega el emulador de NDS "drastic"
Sobre moonlight, no tengo idea lo que es xD
Saludos!
Código: Seleccionar todo
import os
import time
import random
#import pygame # if you don't have pygame: sudo apt-get install python-pygame
#also that line is commented out as we import the mixer specifically a bit further down.
#CONFIG SECTION
startdelay = 5 # Value (in seconds) to delay audio start. If you have a splash screen with audio and the script is playing music over the top of it, increase this value to delay the script from starting.
musicdir = '/home/pi/RetroPie/roms/music'
maxvolume = 0.75
volumefadespeed = 0.02
restart = True # If true, this will cause the script to fade the music out and -stop- the song rather than pause it.
startsong = "" # if this is not blank, this is the EXACT, CaSeSeNsAtIvE filename of the song you always want to play first on boot.
#local variables
bgm = [mp3 for mp3 in os.listdir(musicdir) if mp3[-4:] == ".mp3" or mp3[-4:] == ".ogg"] # Find everything that's .mp3 or .ogg
lastsong = -1
currentsong = -1
from pygame import mixer # import PyGame's music mixer
mixer.init() # Prep that bad boy up.
random.seed()
volume = maxvolume # Store this for later use to handle fading out.
#TODO: Fill in all of the current RetroPie Emulator process names in this list.
emulatornames = ["retroarch","ags","uae4all2","uae4arm","capricerpi","linapple","hatari","stella","atari800","xroar","vice","daphne","reicast","pifba","osmose","gpsp","jzintv","basiliskll","mame","advmame","dgen","openmsx","mupen64plus","gngeo","dosbox","ppsspp","simcoupe","scummvm","snes9x","pisnes","frotz","fbzx","fuse","gemrb","cgenesis","zdoom","eduke32","lincity","love","kodi","alephone","micropolis","openbor","openttd","opentyrian","cannonball","tyrquake","ioquake3","residualvm","xrick","sdlpop","uqm","stratagus","wolf4sdl","drastic","ppsspp","ppssppsdl","PPSSPP","solarus","PPSSPPSDL"]