[pyglet] 2 new revisions pushed by useboxnet on 2014-05-31 07:16 GMT

1 view
Skip to first unread message

pyg...@googlecode.com

unread,
May 31, 2014, 3:16:13 AM5/31/14
to pyglet-...@googlegroups.com
2 new revisions:

Revision: 530457eb6222
Branch: default
Author: Juan J. Martínez <j...@usebox.net>
Date: Sat May 31 07:01:54 2014 UTC
Log: Better error message
http://code.google.com/p/pyglet/source/detail?r=530457eb6222

Revision: be595d421796
Branch: default
Author: Juan J. Martínez <j...@usebox.net>
Date: Sat May 31 07:15:42 2014 UTC
Log: Document player.delete(), note about gc...
http://code.google.com/p/pyglet/source/detail?r=be595d421796

==============================================================================
Revision: 530457eb6222
Branch: default
Author: Juan J. Martínez <j...@usebox.net>
Date: Sat May 31 07:01:54 2014 UTC
Log: Better error message
http://code.google.com/p/pyglet/source/detail?r=530457eb6222

Modified:
/pyglet/media/avbin.py

=======================================
--- /pyglet/media/avbin.py Thu May 8 06:02:29 2014 UTC
+++ /pyglet/media/avbin.py Sat May 31 07:01:54 2014 UTC
@@ -233,7 +233,7 @@
class AVbinSource(StreamingSource):
def __init__(self, filename, file=None):
if file is not None:
- raise NotImplementedError('TODO: Load from file stream')
+ raise NotImplementedError('Loading from file stream is not
supported')

self._file = av.avbin_open_filename(asbytes_filename(filename))
if not self._file:

==============================================================================
Revision: be595d421796
Branch: default
Author: Juan J. Martínez <j...@usebox.net>
Date: Sat May 31 07:15:42 2014 UTC
Log: Document player.delete(), note about gc

Fixes issue #736.

Thanks to Eric Larson for his help.
http://code.google.com/p/pyglet/source/detail?r=be595d421796

Modified:
/pyglet/media/__init__.py

=======================================
--- /pyglet/media/__init__.py Mon May 26 10:33:53 2014 UTC
+++ /pyglet/media/__init__.py Sat May 31 07:15:42 2014 UTC
@@ -40,7 +40,7 @@

Playback is handled by the `Player` class, which reads raw data from
`Source`
objects and provides methods for pausing, seeking, adjusting the volume,
and
-so on. The `Player` class implements a the best available audio device
+so on. The `Player` class implements the best available audio device
(currently, only OpenAL is supported)::

player = Player()
@@ -51,7 +51,7 @@
source = load('background_music.mp3')
player.queue(source)

-Use the `Player` to control playback.
+Use the `Player` to control playback.

If the source contains video, the `Source.video_format` attribute will be
non-None, and the `Player.texture` attribute will contain the current video
@@ -67,6 +67,14 @@
The other advantage of a `StaticSource` is that it can be queued on any
number
of players, and so played many times simultaneously.

+pyglet relies on Python's garbage collector to release resources once a
player
+has finished playing a source. In this way some operations that could
affect
+the application performance can be delayed.
+
+The player provides a `Player.delete()` method that can be used to release
+resources immediately. Also a explicit call to `gc.collect()`can be used to
+collect unused resources.
+
'''

__docformat__ = 'restructuredtext'
Reply all
Reply to author
Forward
0 new messages