Skip to content

Commit 70aaab8

Browse files
committed
Fixed string representation of sf.SoundBuffer
Displaying the 10 first bytes of the samples didn't work and was unecessary anyway, so I removed it.
1 parent 26653fc commit 70aaab8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sfml/audio/audio.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ cdef class SoundBuffer:
150150
del self.p_this
151151

152152
def __repr__(self):
153-
return "SoundBuffer(samples={0}, sample_rate={1}, channel_count={2}, duration={3})".format(self.samples[:10], self.sample_rate, self.channel_count, self.duration)
153+
return "SoundBuffer(sample_rate={0}, channel_count={1}, duration={2})".format(self.sample_rate, self.channel_count, self.duration)
154154

155155
@classmethod
156156
def from_file(cls, filename):

0 commit comments

Comments
 (0)