Skip to content

Commit

Permalink
v1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
twardoch committed May 3, 2023
1 parent 5b808b2 commit 1c2cedb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/audiostretchy/stretch.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,12 @@ def stretch_samples(
or ratio > 2.0
or (silence_mode and (gap_ratio < 0.5 or gap_ratio > 2.0))
):
flags |= Stretch.STRETCH_DUAL_FLAG
flags |= TDHSAudioStretch.STRETCH_DUAL_FLAG

if (fast_detection or self.framerate >= 32000) and not normal_detection:
flags |= Stretch.STRETCH_FAST_FLAG
flags |= TDHSAudioStretch.STRETCH_FAST_FLAG

stretcher = Stretch(min_period, max_period, self.nchannels, flags)
stretcher = TDHSAudioStretch(min_period, max_period, self.nchannels, flags)

if silence_mode:
non_silence_frames = 0
Expand Down

0 comments on commit 1c2cedb

Please sign in to comment.