Audio-LADSPA
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
my $found = 0;
for (split/:/,$ENV{LADSPA_PATH}) {
if (-f "$_/delay.$Config{so}") {
$found = 1;
last;
}
}
unless ($found) {
my $continue = prompt(
qq(the ladspa_sdk plugin "delay.$Config{so}" cannot be found in
LADSPA_PATH: "$ENV{LADSPA_PATH}"
The tests specifically need the plugins from the ladspa_sdk
package, with the LADSPA_PATH environment variable pointing
to the directory where they are installed.
Please correct your LADSPA_PATH and/or download and install
the SDK from from http://www.ladspa.org/
Makefile.PL view on Meta::CPAN
installed, but most of the tests will be skipped.
Do you want to proceed? y/n),"y");
if ($continue !~ /^y/i) {
exit;
}
}
my $play_audio = 1;
if (! eval { require Audio::Play; } ) {
$play_audio = prompt(
"No Audio::Play module was found on your system. Without it,
we can't do audio output. If you want to test audio output,
answer yes to the following question. Audio::Play will then
be added to the required module list. This means it will be
installed automatically if you're using the CPAN / CPANPLUS
modules.
Do you want to test audio output (requires Audio::Play)? y/n","n");
}
$play_audio = $play_audio =~ /^y/i ? 1 : 0;
information dependent on the history of the plugin instance
except for any data locations provided by connect_port() and any
gain set by set_run_adding_gain(). If there is nothing for
activate() to do then the plugin writer may provide a NULL rather
than an empty function.
When present, hosts must call this function once before run() (or
run_adding()) is called for the first time. This call should be
made as close to the run() call as possible and indicates to
real-time plugins that they are now live. Plugins should not rely
on a prompt call to run() after activate(). activate() may not be
called again unless deactivate() is called first. Note that
connect_port() may be called before or after a call to
activate(). */
void (*activate)(LADSPA_Handle Instance);
/* This method is a function pointer that runs an instance of a
plugin for a block. Two parameters are required: the first is a
handle to the particular instance to be run and the second
indicates the block size (in samples) for which the plugin
instance may run.
LADSPA_Data Gain);
/* This is the counterpart to activate() (see above). If there is
nothing for deactivate() to do then the plugin writer may provide
a NULL rather than an empty function.
Hosts must deactivate all activated units after they have been
run() (or run_adding()) for the last time. This call should be
made as close to the last run() call as possible and indicates to
real-time plugins that they are no longer live. Plugins should
not rely on prompt deactivation. Note that connect_port() may be
called before or after a call to deactivate().
Deactivation is not similar to pausing as the plugin instance
will be reinitialised when activate() is called to reuse it. */
void (*deactivate)(LADSPA_Handle Instance);
/* Once an instance of a plugin has been finished with it can be
deleted using the following function. The instance handle passed
ceases to be valid after this call.
( run in 1.060 second using v1.01-cache-2.11-cpan-0b5f733616e )