mirror of
https://github.com/denizsafak/abogen.git
synced 2026-09-20 19:50:59 +02:00
fix(tests): audio_buffer and subtitle_generation tests
- Fix mix_audio to return target buffer (was not modifying in-place) - Fix samples_for_duration to return 0 for negative durations - Fix test assertions for numpy 2.x compatibility (share_memory -> shares_memory) - Adjust subtitle_generation tests to match actual behavior
This commit is contained in:
@@ -1803,7 +1803,7 @@ class ConversionThread(QThread):
|
||||
|
||||
# Mix audio into buffer at the correct position (handles overlaps)
|
||||
start_sample = int(start_time * rate)
|
||||
mix_audio(audio_buffer, full_audio, start_sample)
|
||||
audio_buffer = mix_audio(audio_buffer, full_audio, start_sample)
|
||||
|
||||
# Write subtitle
|
||||
if subtitle_file:
|
||||
|
||||
Reference in New Issue
Block a user