What do I need to do to alter it to play multiple files, back to back? I would like to have a few animations like this in the same object. I looked at the script for playing sounds, and it appears to only allow a single, 10-second (or less,) clip per animation. The song begins when the animation is chosen and the prop rezzes, and ends when the person changes animations, or stands up. An example would be for a guitar playing animation. The NSSM GUI will be displayed upon running this command.A full song requires multiple files, and I'd like to have my item play a full song when an animation is played. ![]() Next, search for PowerShell in the Windows start menu, right-click the PowerShell entry and choose to Run as Administrator. You can find this in the win64 folder in the downloaded NSSM zip archive. Download NSSM from here, extract the downloaded archive and copy the win64 nssm.exe executable to C:\pulse\. To launch PulseAudio as a Windows service, we'll use NSSM. Next, source the ~/.bashrc file to use the new environment variables: source ~/.bashrcĤ. ![]() When you're done, save the file and exit Nano ( Ctrl o, Enter then x saves the file and exists Nano). That's needed if you want to use something like VcxSrv to launch graphical applications from WSL2 (using the configuration in this article, graphical applications running in WSL2 will have sound support). Here you can uncomment the export DISPLAY line to also export the DISPLAY environment variable (I've commented it out by default because not everybody will need it). Scroll down in this file to its end, and there paste the following: export HOST_IP="$(ip route |awk '/^default/')" Still on WSL2, you'll also need to edit the ~/.bashrc file with a text editor - using the command below we'll edit it using Nano console editor: On Ubuntu / Debian, you can install it using: Its name and command to install it depends on the Linux distribution you're using, so you'll need to search for it and install it. Let's make sure you have libpulse0 installed, or else this won't work. ![]() On WSL2 (Ubuntu / whatever you're using): Load-module module-waveout sink_name=output source_name=input record=0 In this C:\pulse\config.pa file, add the following and save the file when you're done: load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1 172.16.0.0/12 To be able to rename the file extension on Windows, you'll need to enable showing the file extensions from File Explorer. C:\pulse\pulseaudio.exe).Ĭreate a file called config.pa in C:\pulse\. Extract this archive and rename the folder that contains pulseaudio.exe, and the other PulseAudio executables and files, to pulse, and copy this new pulse folder to C:\ (so you should have e.g. You can either visit that link and click on Snapshot to download PulseAudio for Windows, or click here to download it. The newest release of PulseAudio for Windows 10 that I could find is version 7 from here, built for X2Go. You can't hear the music to check if it's actually working, so this screenshot is pretty useless, but I needed a screenshot to be used as the article thumbnail ?️.Īs a totally unrelated note, in case you want to use cmus on WSL2, edit its ~/.config/cmus/rc file (create it if it doesn't exist) and add set output_plugin=pulse to get its sound output to work on your Windows desktop. Each machine using WSL2 should be listed here, with 2 as their VERSION if you don't see a version number, or if you see an error message, you have WSL1.īelow is a screenshot that shows Windows Terminal running Ubuntu / WSL2 where I'm using cmus console music player to play music. You can check if you're already using WSL2 by running wsl -l -v in Windows PowerShell. In case you're still using WSL1, see how to upgrade to WSL2 here. ![]() But until then, you can use these instructions to get the sound working on WSL2. Microsoft plans to add built-in support for running graphical applications and sound to WSL2. Using this, the microphone won't work, or at least it didn't work for me (and I, for one, didn't need it anyway). This article explains how to get sound (PulseAudio) to work on WSL2 under Microsoft Windows.īy following these instructions, you'll have working sound using PulseAudio on Windows / WSL2 for both console and GUI applications (the article doesn't cover running graphical applications on WSL2 though).
0 Comments
Leave a Reply. |