fix add_silence() breaking following AudioCutter chunk timestamps

This commit is contained in:
2023-11-02 16:02:41 -06:00
parent d6ba20cbc8
commit 4abe25416c

View File

@@ -66,6 +66,7 @@ class AudioCutter:
self.new_json_info[tag] = info
def add_silence(self, seconds):
self.current_sec += seconds
nframes = int(seconds * self.rate)
shape = self.new_data.shape
shape = (nframes,) + shape[1:]