fix: adjust pitch (fix pitch direction)
This commit is contained in:
@@ -233,7 +233,7 @@ void PlaybackEngine::musicFeedThread() {
|
|||||||
if(haveTimeRatio.load()) {
|
if(haveTimeRatio.load()) {
|
||||||
double ratio = timeRatio.load();
|
double ratio = timeRatio.load();
|
||||||
stretcher.setTimeRatio(ratio);
|
stretcher.setTimeRatio(ratio);
|
||||||
stretcher.setPitchScale(ratio);
|
stretcher.setPitchScale(1.0 / ratio);
|
||||||
haveTimeRatio.store(false);
|
haveTimeRatio.store(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user