AudioStream test5() { printf("------------------------------------\n"); printf("Build a input/output through stream \n"); printf("------------------------------------\n\n"); return MakeInputSound(); }
AudioStream test6() { printf("---------------------------------------------------------\n"); printf("Build a input/output through and record the output stream\n"); printf("---------------------------------------------------------\n\n"); return MakeWriteSound("input.aif", MakeInputSound(), SF_FORMAT_AIFF | SF_FORMAT_PCM_16); }
void InputComponent::makeStream(const Context& ctx) { const auto& inputs = process().inputs(); if(inputs.inputs.size() == 0) return; auto in = MakeInputSound(); ISCORE_ASSERT(in); auto sel = MakeSelectSound(in, (long*)inputs.inputs.data(), inputs.inputs.size()); ISCORE_ASSERT(sel); m_stream = MakeSend(sel); ISCORE_ASSERT(m_stream); }
AudioStream test11() { printf("-------------------------------------------------------------------\n"); printf("Input stream + Faust freeverb effect \n"); printf("-------------------------------------------------------------------\n\n"); AudioEffectList list_effect = MakeAudioEffectList(); faust_effect = MakeFaustAudioEffect(EFFECT1); printf("Faust effect: param num %ld\n", GetControlCountEffect(faust_effect)); for (int i = 0; i < GetControlCountEffect(faust_effect); i++) { float min, max, init; char label[32]; GetControlParamEffect(faust_effect, i, label, &min, &max, &init); printf("Faust effect: param %s %f %f %f\n", label, min, max, init); } list_effect = AddAudioEffect(list_effect, faust_effect); return MakeTransformSound(MakeInputSound(), list_effect, 100, 100); }