We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f07897 commit 035a921Copy full SHA for 035a921
soundcard/mediafoundation.py
@@ -772,7 +772,7 @@ def record(self, numframes=None):
772
recorded_data.append(chunk)
773
recorded_frames += len(chunk)
774
if recorded_frames > required_frames:
775
- to_split = -(recorded_frames-required_frames)
+ to_split = -int(recorded_frames-required_frames)
776
recorded_data[-1], self._pending_chunk = numpy.split(recorded_data[-1], [to_split])
777
778
data = numpy.reshape(numpy.concatenate(recorded_data), [-1, len(set(self.channelmap))])
0 commit comments