change sampleRate to frameRate (consistent with SoundFile)