@@ -17,7 +17,7 @@ playback = Playback() # creates an object for managing playback of a single audi
17
17
playback.load_file(' music-files/sample.mp3' )
18
18
# or just pass the filename directly to the constructor
19
19
20
- playback.play() # plays loaded file from the beginning
20
+ playback.play() # plays loaded audio file from the beginning
21
21
playback.pause() # pauses playback. Has no effect if playback is already paused
22
22
playback.resume() # resumes playback. Has no effect if playback is playing
23
23
playback.stop() # stops playback. Has no effect if playback is not active
@@ -27,11 +27,11 @@ playback.set_volume(0.5) # sets the playback volume to 50% of the audio file's o
27
27
28
28
playback.loop_at_end(True ) # since 0.1.5. Causes playback to automatically restart when it completes.
29
29
30
- playback.active # checks if playback is active i.e playing or paused
31
- playback.curr_pos # returns the current absolute playback position in seconds from
30
+ playback.active # True if playback is active i.e playing or paused
31
+ playback.curr_pos # current absolute playback position in seconds from
32
32
# the start of the audio file (unlike pygame.mixer.get_pos).
33
- playback.paused # checks if playback is paused.
34
- playback.duration # returns the length of the audio file in seconds.
35
- playback.volume # returns current playback volume
36
- playback.loops_at_end # checks if playback is set to restart when it completes.
33
+ playback.paused # True if playback is paused.
34
+ playback.duration # length of the audio file in seconds.
35
+ playback.volume # current playback volume
36
+ playback.loops_at_end # True if playback is set to restart when it completes.
37
37
```
0 commit comments