Skip to content

Instantly share code, notes, and snippets.

@winstonwolff
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save winstonwolff/9107494 to your computer and use it in GitHub Desktop.
Save winstonwolff/9107494 to your computer and use it in GitHub Desktop.
kivy 1.8 playing ogg
def play(sound_fname, loop=False):
if sound_fname is None:
return
sound = SoundLoader.load(sound_fname)
sound.loop = loop
if sound:
sound.play()
return sound
new_sound_fname = 'audio/back_menu.ogg'
play(new_sound_fname, loop=True)
--- running with Kivy 1.8.0 I see these errors:
DEB: Starting background sound: audio/back_menu.ogg
[WARNING ] [AudioGstplayer] No decoder available for type 'audio/ogg'.
[ERROR ] [AudioGstplayer] Your GStreamer installation is missing a plug-in.
[ERROR ] [AudioGstplayer] A Ogg demuxer plugin is required to play this stream, but not installed.
[ERROR ] [AudioGstplayer] GStreamer encountered a general stream error.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment