SoundFile.cue cuts off low-sample-rate sounds early #123
Labels
bug
Issues that relate to unexpected/unwanted behavior. Don't use for PRs.
comp: sclang
sclang C++ implementation (primitives, etc.). for changes to class lib use "comp: class library"
[Issue migrated from SourceForge | ID: 2985060 | Submitted by 'None']
[http://sourceforge.net/support/tracker.php?aid=2985060]
SoundFile.cue cuts of low-sample-rate sounds early. I'm pretty sure this is because it calculates the sustain based on the server's sample rate instead of the sample's, but uses VDiskIn to play back at the sample's rate. So the solution is to change line 336 of SoundFile.sc from
~sustain = (~lastFrame - ~firstFrame)/(server.options.sampleRate ? 44100);
to just
~sustain = (~lastFrame - ~firstFrame)/(sampleRate ? 44100);
The text was updated successfully, but these errors were encountered: