9
9
| :sl:`pygame module for loading and playing sounds`
10
10
11
11
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.
15
13
16
14
The mixer module has a limited number of channels for playback of sounds.
17
15
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.
30
28
31
29
The mixer module must be initialized like other pygame modules, but it has some
32
30
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.
36
32
37
33
``NOTE ``: For less laggy sound use a smaller buffer size. The default
38
34
is set to reduce the chance of scratchy sounds on some computers. You can
@@ -91,7 +87,7 @@ The following file formats are supported
91
87
the next nearest power of 2).
92
88
93
89
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.
95
91
If left as ``None `` then a sensible default will be chosen for you.
96
92
97
93
Some platforms require the :mod: `pygame.mixer ` module to be initialized
@@ -331,7 +327,7 @@ The following file formats are supported
331
327
:rtype: tuple
332
328
333
329
.. note ::
334
- The linked and compile version numbers should be the same.
330
+ The linked and compiled version numbers should be the same.
335
331
336
332
.. versionaddedold :: 2.0.0
337
333
@@ -368,7 +364,7 @@ The following file formats are supported
368
364
it and the Sound object.
369
365
370
366
For now buffer and array support is consistent with ``sndarray.make_sound ``
371
- for Numeric arrays, in that sample sign and byte order are ignored. This
367
+ for NumPy arrays, in that sample sign and byte order are ignored. This
372
368
will change, either by correctly handling sign and byte order, or by raising
373
369
an exception when different. Also, source samples are truncated to fit the
374
370
audio sample size. This will not change.
0 commit comments