lichen-community-systems / Flocking

Flocking - Creative audio synthesis for the Web
GNU General Public License v2.0
695 stars 60 forks source link

Flocking doesn't properly decode low sample rate AIFF files #192

Open colinbdclark opened 7 years ago

colinbdclark commented 7 years ago

For whatever reason, it appears that Flocking is incorrectly decoding lower sample rate AIFF files such as the classic SuperCollider hockey.aiff example file.

The file plays back much faster and at a higher pitch than expected when played in the "Audio File Decoder" demo. A bug in Flocking's sample rate converter? Or in the demo itself?

colinbdclark commented 7 years ago

This seems to be an issue with, at minimum, AIFF format audio files encoded at 11 KHz. It only seems to arise when the speed input is set to 1.0; a value of, say, 0.999999 causes the playback to be normal. Converting the AIFF file to WAVE format, even at the same sample rate, also does not exhibit the issue.