<?xml version="1.0"?>
<!DOCTYPE ladspa SYSTEM "ladspa-swh.dtd">
<?xml-stylesheet href="ladspa.css" type="text/css"?>

<ladspa>
  <global>
    <meta name="maker" value="Steve Harris &lt;steve@plugin.org.uk&gt;"/>
    <meta name="copyright" value="GPL"/>
    <meta name="properties" value="HARD_RT_CAPABLE"/>
    <code>
      #include "ladspa-util.h"
    </code>
  </global>

  <plugin label="amp" id="1181" class="AmplifierPlugin">
    <name>Simple amplifier</name>

    <callback event="run"><![CDATA[
      unsigned long pos;
      float coef = DB_CO(gain);

      for (pos = 0; pos < sample_count; pos++) {
        buffer_write(output[pos], input[pos] * coef);
      }
    ]]></callback>

    <port label="gain" dir="input" type="control" hint="default_0">
      <name>Amps gain (dB)</name>
      <p>Controls the gain of the input signal in dB's.</p>
      <range min="-70" max="+70"/>
    </port>

    <port label="input" dir="input" type="audio">
      <name>Input</name>
    </port>

    <port label="output" dir="output" type="audio">
      <name>Output</name>
    </port>
  </plugin>
</ladspa>
