Repository navigation
Sound: removed play() in favor of play_file() - #552
Conversation
WasabiFan
left a comment
There was a problem hiding this comment.
I think there are code examples in this file and maybe in other docs pages which use the old method name; those also need to be updated. Looks good to me otherwise.
| if not 0 < volume <= 100: | ||
| raise ValueError('invalid volume (%s)' % volume) | ||
|
|
||
| if wav_file.endswith(".mp3"): |
There was a problem hiding this comment.
Why not require that it does end in .wav rather than not ending in .mp3?
There was a problem hiding this comment.
I was worried about breaking things if someone had a wav file that did not end in .wav. That would be pretty silly though...will change it to enforce .wav.
There was a problem hiding this comment.
I come from the Windows world where file extensions are used for a lot of logic, so maybe my POV is different. wav files without extensions might be common, I'm not sure.
|
I think example code needs to be updated too. |
|
Fixed the example in the docstring |
For issue #532