Skip to content

Commit b521b82

Browse files
authored
Update mixer docs
Clarify mixer docs
1 parent f45b277 commit b521b82

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

docs/reST/ref/mixer.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ The following file formats are supported
431431
| :sl:`get the playback volume`
432432
| :sg:`get_volume() -> value`
433433
434-
Return a value from 0.0 to 1.0 representing the volume for this Sound.
434+
Return a value from 0.0 to 1.0 (inclusive) representing the volume for this Sound.
435435

436436
.. ## Sound.get_volume ##
437437
@@ -472,7 +472,7 @@ The following file formats are supported
472472
| :sg:`Channel(id) -> Channel`
473473
474474
Return a Channel object for one of the current channels. The id must be a
475-
value from 0 to the value of ``pygame.mixer.get_num_channels()``.
475+
value from 0 to the value of ``pygame.mixer.get_num_channels()`` (exclusive).
476476

477477
The Channel object can be used to get fine control over the playback of
478478
Sounds. A channel can only playback a single Sound at time. Using channels
@@ -577,7 +577,7 @@ The following file formats are supported
577577
578578
Set the volume (loudness) of a playing sound. When a channel starts to
579579
play its volume value is reset. This only affects the current sound. The
580-
value argument is between 0.0 and 1.0.
580+
value argument is in the range of 0.0 to 1.0 (inclusive).
581581

582582
If one argument is passed, it will be the volume of both speakers. If two
583583
arguments are passed and the mixer is in stereo mode, the first argument
@@ -603,7 +603,8 @@ The following file formats are supported
603603
| :sl:`get the volume of the playing channel`
604604
| :sg:`get_volume() -> value`
605605
606-
Return the volume of the channel for the current playing sound. This does
606+
Return the volume of the channel for the current playing sound
607+
in the range of 0.0 to 1.0 (inclusive). This does
607608
not take into account stereo separation used by
608609
:meth:`Channel.set_volume`. The Sound object also has its own volume
609610
which is mixed with the channel.

0 commit comments

Comments
 (0)