void AudioIO::framesPerBuffer(int n){ if(framesPerBuffer() != n){ mFramesPerBuffer = n; channelsBus(AudioIOData::channelsBus()); reopen(); } }
void AudioIO::framesPerBuffer(int n) { if(mImpl->mIsOpen) { warn("the number of frames/buffer cannnot be set with the stream open", "AudioIO"); return; } if(framesPerBuffer() != n) { mFramesPerBuffer = n; resizeBuffer(true); resizeBuffer(false); channelsBus(AudioIOData::channelsBus()); resize(mBufT, mFramesPerBuffer); } }
double AudioIOData::secondsPerBuffer() const { return (double)framesPerBuffer() / framesPerSecond(); }
void AudioIOData::zeroOut() { zero(mBufO, channelsOut() * framesPerBuffer()); }
void AudioIOData::zeroBus() { zero(mBufB, framesPerBuffer() * mNumB); }