Lines Matching defs:port

92 	LADSPA_PortDescriptor pdesc;		/* port description */
94 unsigned int *port_bindings; /* index = channel number, value = LADSPA port */
97 LADSPA_Data *controls; /* index = LADSPA control port index */
161 unsigned int port)
166 if (port >= lplug->desc->PortCount)
168 for (idx = 0; idx < port; idx++)
410 unsigned int port, channels, idx, idx1;
419 port = io->port_bindings[idx];
421 err = snd_pcm_ladspa_find_port(&port, plugin, io->pdesc | LADSPA_PORT_AUDIO, idx);
423 SNDERR("unable to find audio %s port %u plugin '%s'", io->pdesc & LADSPA_PORT_INPUT ? "input" : "output", idx, plugin->desc->Name);
427 if (port == NO_ASSIGN)
434 err = snd_pcm_ladspa_add_to_array(&eps->ports, idx1, port);
436 SNDERR("unable to add port %u for audio %s plugin '%s'", port, io->pdesc & LADSPA_PORT_INPUT ? "input" : "output", plugin->desc->Name);
463 unsigned int port;
468 port = io->port_bindings[0];
470 err = snd_pcm_ladspa_find_port(&port, plugin, io->pdesc | LADSPA_PORT_AUDIO, 0);
472 SNDERR("unable to find audio %s port %u plugin '%s'", io->pdesc & LADSPA_PORT_INPUT ? "input" : "output", (unsigned int)0, plugin->desc->Name);
481 err = snd_pcm_ladspa_add_to_array(&eps->ports, 0, port);
483 SNDERR("unable to add port %u for audio %s plugin '%s'", port, io->pdesc & LADSPA_PORT_INPUT ? "input" : "output", plugin->desc->Name);
506 static void snd_pcm_ladspa_get_default_cvalue(const LADSPA_Descriptor * desc, unsigned int port, LADSPA_Data *val)
510 hdesc = desc->PortRangeHints[port].HintDescriptor;
513 *val = desc->PortRangeHints[port].LowerBound;
517 *val = exp(log(desc->PortRangeHints[port].LowerBound)
519 + log(desc->PortRangeHints[port].UpperBound)
522 *val = (desc->PortRangeHints[port].LowerBound * 0.75) +
523 (desc->PortRangeHints[port].UpperBound * 0.25);
528 *val = sqrt(desc->PortRangeHints[port].LowerBound *
529 desc->PortRangeHints[port].UpperBound);
532 (desc->PortRangeHints[port].LowerBound +
533 desc->PortRangeHints[port].UpperBound);
538 *val = exp(log(desc->PortRangeHints[port].LowerBound)
540 + log(desc->PortRangeHints[port].UpperBound)
543 *val = (desc->PortRangeHints[port].LowerBound * 0.25) +
544 (desc->PortRangeHints[port].UpperBound * 0.75);
548 *val = desc->PortRangeHints[port].UpperBound;
599 SNDERR("%s port for plugin %s depth %u is not connected", io->pdesc & LADSPA_PORT_INPUT ? "input" : "output", plugin->desc->Name, depth);
651 SNDERR("Unable to connect duplicate port of plugin '%s' channel %u depth %u", plugin->desc->Name, idx, instance->depth);
980 snd_output_printf(out, " Audio %s port bindings:\n", io->pdesc == LADSPA_PORT_INPUT ? "input" : "output");
990 snd_output_printf(out, " Control %s port initial values:\n", io->pdesc == LADSPA_PORT_INPUT ? "input" : "output");
1267 unsigned int port, uval;
1273 err = snd_pcm_ladspa_find_port(&port, lplug, io->pdesc | LADSPA_PORT_CONTROL, lval);
1275 err = snd_pcm_ladspa_find_sport(&port, lplug, io->pdesc | LADSPA_PORT_CONTROL, id);
1278 SNDERR("Unable to find an control port (%s)", id);
1282 SNDERR("Control port %s has not an float or integer value", id);
1285 err = snd_pcm_ladspa_find_port_idx(&uval, lplug, io->pdesc | LADSPA_PORT_CONTROL, port);
1338 long channel, port;
1346 err = snd_config_get_integer(n, &port);
1348 err = snd_pcm_ladspa_find_port(&array[channel], lplug, io->pdesc | LADSPA_PORT_AUDIO, port);
1350 SNDERR("Unable to find an audio port (%li) for channel %s", port, id);
1357 SNDERR("Invalid LADSPA port field type for %s", id);
1362 SNDERR("Unable to find an audio port (%s) for channel %s", sport, id);
1668 input audio port, zero samples are given to this LADSPA port. On the output
1670 If specific ALSA channel does not exist, the LADSPA output port is
1697 C INT or STR # C - channel, INT - audio port index, STR - audio port name
1701 I INT or REAL # I - control port index, INT or REAL - control value
1703 STR INT or REAL # STR - control port name, INT or REAL - control value