Created
July 6, 2015 04:11
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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