going to abandon usb audio and do pwm
![Sad :(](./images/smilies/icon_e_sad.gif)
anyone help with this? ive ran the git clone, then i go into volumecontrol and the file is empty why is this?Fleder wrote:For easier access and backup, i will post the solution here.
jcoutch wrote:Assuming you've already set the USB sound card as the default in Alsa, you should be able to do the following:
Open up a terminal prompt, and run:
amixer -l
Note the name of your mixer. Mine was named "Speaker".
Now run:
git clone https://github.com/Aloshi/EmulationStation.git
nano EmulationStation/es-app/src/VolumeControl.cpp
Change line 8 from:
const char * VolumeControl::mixerName = "PCM";
to match the name of your mixer ("Speaker" in my case):
const char * VolumeControl::mixerName = "Speaker";
Press Ctrl+O and Enter to save the file, then Ctrl+X to exit Nano.
Then, follow the instructions for building the code from the main Github page:
sudo apt-get install libsdl2-dev libboost-system-dev libboost-filesystem-dev libboost-date-time-dev libboost-locale-dev libfreeimage-dev libfreetype6-dev libeigen3-dev libcurl4-openssl-dev libasound2-dev libgl1-mesa-dev build-essential cmake fonts-droid
cd EmulationStation
cmake .
make
make install
Restart Emulation Station, and now you should be able to control your volume.
Users browsing this forum: No registered users and 1 guest