bool equalKeyTimes(const domChannelRef& c1, const domChannelRef& c2) { domSource* s1 = getInputSource(c1); domSource* s2 = getInputSource(c2); assert(s1); assert(s2); return equalKeyTimes(s1, s2); }
void SoundcardDialog::checkSupport() { // check if the selected device can do what we want PaSampleFormat sampleFormat = paFloat32; PaStreamParameters inputParams; PaStreamParameters outputParams; memset(&inputParams, 0, sizeof(inputParams)); inputParams.device = getInputSource(); inputParams.suggestedLatency = 0.2f; inputParams.channelCount = 2; inputParams.sampleFormat = sampleFormat; memset(&outputParams, 0, sizeof(outputParams)); outputParams.device = getOutputSource(); outputParams.suggestedLatency = 0.2f; outputParams.channelCount = 2; outputParams.sampleFormat = sampleFormat; PaError err = Pa_IsFormatSupported(&inputParams, &outputParams, getSamplerate()); if (err==paFormatIsSupported) { ui->warningText->setText(""); } else { ui->warningText->setText("Format NOT supported"); } }