Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resample SampleBuffer only once when loading from SampleClip (#6594)
The SampleBuffer's sample rate in SampleClip was altered twice during SampleClip::loadSettings: first when setSampleFile was called, which set the sample rate of the SampleBuffer to the AudioEngine's sample rate (good), and a second time when calling setSampleRate, which set it to the sample rate specified within the project file (bad). This led to the sample rate of the buffer being different than that of the project, resulting in it being pitched incorrectly on playback.
- Loading branch information