From 717f70cbbe04e7b8b0f474ae5f35616464078911 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Tue, 08 Jan 2013 14:27:35 +0000 Subject: fix stream to work in Sugar --- diff --git a/utils/play_audio.py b/utils/play_audio.py index 3320b41..7014721 100644 --- a/utils/play_audio.py +++ b/utils/play_audio.py @@ -67,11 +67,9 @@ def play_audio_from_file(file_path, queue=False): else: Gst.init(None) - _logger.debug("filesrc location=%s ! decodebin !" \ - " autoaudiosink" % (file_path,)) - play_audio_from_file.player = Gst.parse_launch ( \ - "filesrc location=%s ! decodebin !" \ - " autoaudiosink" % (file_path,)) + play_audio_from_file.player = Gst.parse_launch ( + 'filesrc location=%s ! oggdemux ! vorbisdec ! ' \ + 'audioconvert ! alsasink' % (file_path)) if not play_audio_from_file.player: _logger.warning('unable to play audio file %s' % (file_path)) -- cgit v0.9.1