We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c4ca092 + 081776c commit 43c457eCopy full SHA for 43c457e
soundfile.py
@@ -402,6 +402,8 @@ def _duration_str(self):
402
duration = "{0:.0g}:{1:02.0g}:{2:05.3f} h".format(hours, minutes, seconds)
403
elif minutes >= 1:
404
duration = "{0:02.0g}:{1:05.3f} min".format(minutes, seconds)
405
+ elif seconds <= 1:
406
+ duration = "{0:d} samples".format(self.frames)
407
else:
408
duration = "{0:.3f} s".format(seconds)
409
return duration
0 commit comments