The only change in the code is to send a custom keystroke rather than volume_up/down. This allows to customize the volume update command. While globally pulseaudio manages well the keyboard keys, with volume increments of roughly 10% per keypress, on a knob it's better to have a finer resolution, say around 2%. I send custom keypresses for keys not present on my keyboard, then capture them as keyboard shortcut to change the card's volume by 2% increments/decrements.
Also, I updated the README with the information I wish I found when I first got the card. And added a .gitignore, but that's basic stuff.
The only change in the code is to send a custom keystroke rather than volume_up/down. This allows to customize the volume update command. While globally pulseaudio manages well the keyboard keys, with volume increments of roughly 10% per keypress, on a knob it's better to have a finer resolution, say around 2%. I send custom keypresses for keys not present on my keyboard, then capture them as keyboard shortcut to change the card's volume by 2% increments/decrements. Also, I updated the README with the information I wish I found when I first got the card. And added a .gitignore, but that's basic stuff.