Introduce GSTREAMER_AUDIO_SINK setting to control which sink we use

This commit is contained in:
Thomas Adamcik 2010-08-20 00:56:28 +02:00
parent e566e7acc2
commit 7f25b0b514
2 changed files with 6 additions and 1 deletions

View File

@ -66,7 +66,7 @@ class GStreamerProcess(BaseProcess):
self.gst_pipeline = gst.parse_launch(' ! '.join([
'audioconvert name=convert',
'volume name=volume',
'autoaudiosink'
settings.GSTREAMER_AUDIO_SINK,
]))
pad = self.gst_pipeline.get_by_name('convert').get_pad('sink')

View File

@ -167,3 +167,8 @@ SPOTIFY_USERNAME = u''
#:
#: Used by :mod:`mopidy.backends.libspotify`.
SPOTIFY_PASSWORD = u''
#: Which GStreamer audio sink to use in output pipeline.
#:
#: Default: autoaudiosink
GSTREAMER_AUDIO_SINK = u'autoaudiosink'