We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b000246 commit 88a9a13Copy full SHA for 88a9a13
docs/reST/ref/mixer.rst
@@ -369,6 +369,10 @@ The following file formats are supported
369
an exception when different. Also, source samples are truncated to fit the
370
audio sample size. This will not change.
371
372
+ .. note:: ``bytes(Sound)`` and ``bytearray(Sound)`` make use of the buffer
373
+ interface, which is implemented internally by ``pygame.mixer.Sound``.
374
+ Because of this, there is no need to directly implement ``__bytes__``.
375
+
376
.. versionaddedold:: 1.8 ``pygame.mixer.Sound(buffer)``
377
.. versionaddedold:: 1.9.2
378
:class:`pygame.mixer.Sound` keyword arguments and array interface support
0 commit comments