@@ -55,8 +55,6 @@ def load_file(self, path_to_file: str) -> None:
55
55
self .__bind (lib .set_device_volume (self .__ma_attrs ))
56
56
57
57
self .__file_duration = TinyTag .get (path_to_file ).duration
58
-
59
- return True
60
58
61
59
def play (self ) -> None :
62
60
"""
@@ -161,7 +159,7 @@ def loop_at_end(self, loops_at_end: bool) -> None:
161
159
@property
162
160
def active (self ) -> bool :
163
161
"""
164
- Returns True if playback is playing or is paused and False otherwise
162
+ True if playback is playing or is paused and False otherwise
165
163
"""
166
164
167
165
if not self .__ma_attrs .audio_stream_ready :
@@ -173,7 +171,7 @@ def active(self) -> bool:
173
171
@property
174
172
def curr_pos (self ) -> float :
175
173
"""
176
- Returns playback's current position/offset in seconds from the
174
+ The playback's current position/offset in seconds from the
177
175
beginning of audio file if playback is active or the file has
178
176
been loaded and -1 otherwise
179
177
"""
@@ -194,7 +192,7 @@ def paused(self) -> bool:
194
192
@property
195
193
def duration (self ) -> float :
196
194
"""
197
- Returns the length in seconds of the audio file, which is 0 if no file has
195
+ The length in seconds of the audio file, which is 0 if no file has
198
196
been loaded
199
197
"""
200
198
@@ -203,7 +201,7 @@ def duration(self) -> float:
203
201
@property
204
202
def volume (self ) -> float :
205
203
"""
206
- Returns playback's current volume, a value in the interval [0, 1]
204
+ The playback's current volume, a value in the interval [0, 1]
207
205
"""
208
206
209
207
if self .active :
0 commit comments