From 4706a4975be4e326f6cf999316251ed91a3b10aa Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Mon, 07 Jan 2013 19:16:57 +0000 Subject: minor stream cleanup --- diff --git a/utils/play_audio.py b/utils/play_audio.py index 26ee031..b3c0728 100644 --- a/utils/play_audio.py +++ b/utils/play_audio.py @@ -43,10 +43,9 @@ def play_audio_from_file(file_path, queue=False): play_audio_from_file.player.set_state(gst.STATE_NULL) - play_audio_from_file.player = gst.parse_launch ( \ - "filesrc location=%s" \ - " ! oggdemux ! vorbisdec !" \ - "audioconvert ! alsasink" % (file_path,)) + play_audio_from_file.player = gst.parse_launch ( + "filesrc location=%s ! decodebin !" \ + " autoaudiosink" % (file_path,)) if not play_audio_from_file.player: _logger.warning('unable to play audio file %s' % (file_path)) -- cgit v0.9.1