~ubuntu-branches/ubuntu/oneiric/pulseaudio/oneiric

« back to all changes in this revision

Viewing changes to src/modules/module-ladspa-sink.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel T Chen
  • Date: 2007-12-04 00:56:08 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20071204005608-y1xqvcu45g1yxtlu
Tags: 0.9.8-1ubuntu1
"Hail our new PulseAudio overlords (part two)."

* Merge from Debian unstable.
* Ubuntu-specific changes:
  - debian/control:
    + Don't build-depend on libjack0.100.0-dev or build jack module
      packages,
    + Update pulseaudio's Recommends and Suggests to accomodate
      existing promoted main packages,
    + Explicitly mention pasuspender in pulseaudio-utils's long
      description,
    + Add Vcs-Bzr URI,
    + Adhere to DebianMaintainerField;
  - debian/rules: Use multiuser for update-rc.d;
  - debian/patches/series: Retain the exclusion of
    0001-Set-ESD-socket-to-tmp-.esd-socket-to-match-up-with.patch.
* Dropped Ubuntu-specific change (absorbed into Debian source):
  debian/patches/0002-Double-esound-maximum-sample-size.patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: module-ladspa-sink.c 1971 2007-10-28 19:13:50Z lennart $ */
 
1
/* $Id: module-ladspa-sink.c 2043 2007-11-09 18:25:40Z lennart $ */
2
2
 
3
3
/***
4
4
  This file is part of PulseAudio.
45
45
#include "module-ladspa-sink-symdef.h"
46
46
#include "ladspa.h"
47
47
 
48
 
PA_MODULE_AUTHOR("Lennart Poettering")
49
 
PA_MODULE_DESCRIPTION("Virtual LADSPA sink")
50
 
PA_MODULE_VERSION(PACKAGE_VERSION)
 
48
PA_MODULE_AUTHOR("Lennart Poettering");
 
49
PA_MODULE_DESCRIPTION("Virtual LADSPA sink");
 
50
PA_MODULE_VERSION(PACKAGE_VERSION);
 
51
PA_MODULE_LOAD_ONCE(FALSE);
51
52
PA_MODULE_USAGE(
52
53
        "sink_name=<name for the sink> "
53
54
        "master=<name of sink to remap> "
57
58
        "channel_map=<channel map> "
58
59
        "plugin=<ladspa plugin name> "
59
60
        "label=<ladspa plugin label> "
60
 
        "control=<comma seperated list of input control values>")
 
61
        "control=<comma seperated list of input control values>");
61
62
 
62
63
struct userdata {
63
64
    pa_core *core;
177
178
            p = src + c;
178
179
            q = u->input;
179
180
            for (j = 0; j < n; j++, p += u->channels, q++)
180
 
                *q = CLAMP(*p, -1.0, 1.0);
 
181
                *q = PA_CLAMP_UNLIKELY(*p, -1.0, 1.0);
181
182
 
182
183
            u->descriptor->run(u->handle[c], n);
183
184
 
184
185
            q = u->output;
185
186
            p = dst + c;
186
187
            for (j = 0; j < n; j++, q++, p += u->channels)
187
 
                *p = CLAMP(*q, -1.0, 1.0);
 
188
                *p = PA_CLAMP_UNLIKELY(*q, -1.0, 1.0);
188
189
        }
189
190
 
190
191
        pa_memblock_release(tchunk.memblock);