Skip to content

Instantly share code, notes, and snippets.

@Fornoth
Fornoth / alsa_volume_test.py
Created April 12, 2015 22:13
Get alsa volume using pyalsaaudio
import alsaaudio as alsa
mixer_name = alsa.mixers()[0]
mixer = alsa.Mixer(mixer_name)
print mixer.getvolume()
@Fornoth
Fornoth / Notes.md
Last active September 27, 2023 17:52
Makes a device show up in spotify connect devices list, but nothing else yet

#Python Script Setup

To get the python script running, run either pip install flask or pip install -r requirements.txt if you used git clone to clone the gist

#libspotify_embedded_shared.so notes

##Using the library (still in progress) There's a compile.sh that compiles a program that calls SpInit(), but doesn't get any farther because it needs more than just the API version number (which is 4)

##Spotify appkey