Skip to content

Commit 64bebe7

Browse files
committed
Remove old info and improve mixer docs
1 parent 5d83e1a commit 64bebe7

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

docs/reST/ref/mixer.rst

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
| :sl:`pygame module for loading and playing sounds`
1010
1111
This module contains classes for loading Sound objects and controlling
12-
playback. The mixer module is optional and depends on SDL_mixer. Your program
13-
should test that :mod:`pygame.mixer` is available and initialized before using
14-
it.
12+
playback.
1513

1614
The mixer module has a limited number of channels for playback of sounds.
1715
Usually programs tell pygame to start playing audio and it selects an available
@@ -30,9 +28,7 @@ streams the music from the files without loading music at once into memory.
3028

3129
The mixer module must be initialized like other pygame modules, but it has some
3230
extra conditions. The ``pygame.mixer.init()`` function takes several optional
33-
arguments to control the playback rate and sample size. Pygame will default to
34-
reasonable values, but pygame cannot perform Sound resampling, so the mixer
35-
should be initialized to match the values of your audio resources.
31+
arguments to control the playback rate and sample size.
3632

3733
``NOTE``: For less laggy sound use a smaller buffer size. The default
3834
is set to reduce the chance of scratchy sounds on some computers. You can
@@ -91,7 +87,7 @@ The following file formats are supported
9187
the next nearest power of 2).
9288

9389
The devicename parameter is the name of sound device to open for audio
94-
playback. Allowed device names will vary based on the host system.
90+
playback. Allowed device names will vary based on the host system.
9591
If left as ``None`` then a sensible default will be chosen for you.
9692

9793
Some platforms require the :mod:`pygame.mixer` module to be initialized
@@ -331,7 +327,7 @@ The following file formats are supported
331327
:rtype: tuple
332328

333329
.. note::
334-
The linked and compile version numbers should be the same.
330+
The linked and compiled version numbers should be the same.
335331

336332
.. versionaddedold:: 2.0.0
337333

0 commit comments

Comments
 (0)