Skip to content

Instantly share code, notes, and snippets.

@cyanidium
Created July 6, 2015 04:11
Show Gist options
  • Save cyanidium/095aa57ed9cd9406e1ef to your computer and use it in GitHub Desktop.
Save cyanidium/095aa57ed9cd9406e1ef to your computer and use it in GitHub Desktop.
Working Gst 1.0+ caps for libspotify/pyspotify to work. Took me a day to figure out why the old 0.10 caps weren't working, so I'm sharing to save someone else the same pain.
import gi
gi.require_version('Gst', '1.0')
from gi.repository import Gst
caps = Gst.Caps.from_string("audio/x-raw, rate=(int)44100, channels=(int)2, format=(string)S16LE, layout=(string)interleaved")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment