audio/internal/convert: Adjust window size again (confirmed this worked well on iPhone 6)

This commit is contained in:
Hajime Hoshi 2018-01-06 01:49:55 +09:00
parent 5b2dbf6036
commit 11a1e6ec39

View File

@ -162,7 +162,7 @@ func (r *Resampling) src(i int64) (float64, float64, error) {
}
func (r *Resampling) at(t int64) (float64, float64, error) {
windowSize := 4.0
windowSize := 8.0
tInSrc := float64(t) * float64(r.from) / float64(r.to)
startN := int64(tInSrc - windowSize)
if startN < 0 {