From 6a473e2272175767c066d87500d6b9ad94823271 Mon Sep 17 00:00:00 2001 From: krivar Date: Thu, 4 Apr 2013 14:03:55 +0300 Subject: [PATCH 1/2] Update audio_pygame.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit mp3 is supported on android (tested) http://developer.android.com/guide/appendix/media-formats.html iOS should be supported too (haven't tested) http://developer.apple.com/library/ios/#documentation/AudioVideo/Conceptual/MultimediaPG/UsingAudio/UsingAudio.html I don't know how to "a,b,c on android; x,y,z on iOS" so I can't add the rest of the formats. --- kivy/core/audio/audio_pygame.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kivy/core/audio/audio_pygame.py b/kivy/core/audio/audio_pygame.py index 07d326d4a..db21e2396 100644 --- a/kivy/core/audio/audio_pygame.py +++ b/kivy/core/audio/audio_pygame.py @@ -32,7 +32,7 @@ class SoundPygame(Sound): # __slots__ = ('_data', '_channel') @staticmethod def extensions(): - return ('wav', 'ogg', ) + return ('wav', 'ogg', 'mp3') def __init__(self, **kwargs): self._data = None From fc3b0c43ccaff3b9c4afe23f93866f3069eaa70b Mon Sep 17 00:00:00 2001 From: Krister Viirsaar Date: Mon, 8 Apr 2013 21:37:49 +0300 Subject: [PATCH 2/2] New push to kivy audio_pygame --- kivy/core/audio/audio_pygame.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kivy/core/audio/audio_pygame.py b/kivy/core/audio/audio_pygame.py index db21e2396..3aa46ca92 100644 --- a/kivy/core/audio/audio_pygame.py +++ b/kivy/core/audio/audio_pygame.py @@ -32,7 +32,9 @@ class SoundPygame(Sound): # __slots__ = ('_data', '_channel') @staticmethod def extensions(): - return ('wav', 'ogg', 'mp3') + if platform() == 'android': + return ('wav', 'ogg', 'mp3') + return ('wav', 'ogg') def __init__(self, **kwargs): self._data = None