Update sound and sound stream classes
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1064 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
27c7d487a0
commit
12af32c083
4 changed files with 36 additions and 8 deletions
|
@ -24,7 +24,7 @@ class MyCustomStream(sf.SoundStream):
|
|||
# Check if there is enough data to stream
|
||||
if self.myOffset > len(self.myBuffer):
|
||||
# Returning something else than a string means that we want to stop playing the stream
|
||||
return False
|
||||
return ""
|
||||
# Data contains the string of samples we will return
|
||||
if self.myOffset + self.myBufferSize >= len(self.myBuffer):
|
||||
print("End of audio data reached")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue