Commit graph

64 commits

Author SHA1 Message Date
Tanu Kaskinen
9197c0323e Add comments referring to bug #53709. 2012-08-19 14:49:27 +03:00
Paul Menzel
e54b0fa6c9 Correct spelling of PulseAudio
• s,Pulseaudio,PulseAudio,
• One last occurence of this “error” is in the French translation.
2012-05-11 18:25:36 +05:30
Peter Meerwald
b351e06817 fix the ever-popular 'the the' typo
some are comments, some are user-visible doxygen text and documentation
2012-01-28 17:51:59 +02:00
Arun Raghavan
aaf0f5bd6e filters: Fix the master source/sink when autoloaded
When autoloaded, it is expected that module-filter-apply (or whatever is
loading us) will take care of applying the filter on the correct
sink/source master. Instead of adding complexity by tracking what is
currently being filtered, we just disallow filtering anything except the
original master sink/source and let module-filter-apply or whatever is
loading us deal with dynamic sink/source changes.
2011-11-24 12:35:48 +05:30
Maarten Bosmans
93f46b92c7 Squash unused variable compiler warning 2011-11-14 11:08:04 +05:30
Tanu Kaskinen
666261ece8 memblockq: Improve debuggability by storing a name and a sample spec.
These are not used for anything at this point, but this
makes it easy to add ad-hoc debug prints that show the
memblockq name and to convert between bytes and usecs.
2011-10-01 13:25:16 +01:00
Arun Raghavan
ec099f9306 equalizer: Use volume sharing by default
Uses the shared volume infrastructure by default with an option to
fallback on the old pretend-volume-sharing-that-kind-of-works if someone
wants it that way.
2011-09-14 14:15:01 +05:30
Maarten Bosmans
647048ebc4 module-equalizer-sink: Use correct limit in loop 2011-09-03 12:16:54 +02:00
Maarten Bosmans
918f168c15 module-equalizer-sink: Use = in initialising variables
This makes the compiler in C99 mode happy
2011-09-03 12:15:51 +02:00
Maarten Bosmans
fc3ddfb7f5 module-equalizer-sink: Use %z for printf of size_t variables 2011-09-03 12:15:36 +02:00
Arun Raghavan
3fd07a33ee equalizer: Comment out unused function
Gets rid of a compiler warning
2011-08-29 22:14:04 +05:30
Maarten Bosmans
c5dca7cf2b More spelling fixes 2011-08-25 11:27:47 +01:00
Maarten Bosmans
b4e938e194 Move i18n.[ch] to src/pulsecore
The header is used in files troughout the tree and is not included in the public api,
so it belongs in pulsecore, not in pulse.
2011-08-11 13:23:42 +02:00
Colin Guthrie
6c6b50d6a8 alsa: Reinitialise the mixer on port change.
This allows us to flip from software to hardware volume control as the port's
mixer path dictates.
2011-07-20 22:23:10 +01:00
Colin Guthrie
a9cf320bc1 devices: Set certain sink/source flags automatically.
Some sink flags are really just a product of what callbacks
are set on the device. We still enforce a degree of sanity
that the flags match the callbacks set, but we also set the
flags automatically in our callback setter functions to
help ensure that a) people use them and b) flags & callbacks
are kept in sync.
2011-07-20 22:20:37 +01:00
Colin Guthrie
ded07a5898 devices: Use wrapper functions to set the *_volume and *_mute callbacks.
This is not currently useful but future commits will make further
changes concerning automatic setting of flags and event delivery
that makes this structure necessary.
2011-07-19 19:50:43 +01:00
Maarten Bosmans
dd9265ac78 Remove unnecessary #includes 2011-06-22 23:12:20 +01:00
Arun Raghavan
0ac2cfce6d core: Add extended stream API to support compressed formats
This is the beginning of work to support compressed formats natively in
PulseAudio. This adds a pa_stream_new_extended() that takes a format
structure, sends it to the server (=> protocol extension) and has the
server negotiate with the appropropriate sink to figure out what format
it should use.

This is work in progress, and works only with PCM streams. Actual
compressed format support in some sink needs to be implemented, and
extensive testing is required.

More details on how this is supposed to work is available at:
http://pulseaudio.org/wiki/PassthroughSupport
2011-05-02 11:54:43 +05:30
Arun Raghavan
233ef98bf1 filter-apply: Mark modules as being autoloaded
(Based on Colin's review) We mark modules as being autoloaded so that
they can handle this as a special case if needed (which is required by
module-echo-cancel for now). This inverts how things were done and makes
using these modules manually less error-prone.
2011-05-02 10:08:27 +05:30
Colin Guthrie
34658927a3 equalizer: Use sink_master as the module argument rather than just master.
This brings more uniformity to arguments to match module-echo-cancel
(which needs both sink and source masters, hence the disambiguation).

This will allow other modules to load filters in a more uniform way
in the future without kludges to deal with variation in arguments.
2011-04-18 10:31:51 +02:00
Maarten Bosmans
26366664c1 Update PA_MODULE_USAGE to be in line with actual implementation 2011-03-18 12:07:02 +00:00
Tanu Kaskinen
969c7c80fe core: Link virtual sinks and sources to their streams.
This change doesn't add any functionality in itself, but it will be useful in
the future for operating on chains of sinks or sources that are piggy-backing
on each other.

For example, the PA_PROP_DEVICE_MASTER_DEVICE property could
be handled in the core so that each virtual device doesn't have to maintain it
separately. By using the origin_sink and destination_source pointers the core
is able to see at stream creation time that the stream is created by a virtual
device, and then update that device's property list using the name of the
master device that the stream is being connected to. The same thing can be done
also when the stream is being moved from a device to another, in which case the
_MASTER_DEVICE property needs updating.
2011-02-22 10:10:48 +00:00
Lennart Poettering
066e626401 equalizer: various smaller cleanups for m-e-s 2010-02-25 00:39:06 +01:00
Jason Newton
493d8b2fb7 module-equalizer-sink: add latency of output_q and input_q to get latency calculation 2009-11-20 06:34:46 -08:00
Jason Newton
1178f61280 module-equalizer-sink: switch back to reference dsp implementation - cpu usage doesn't really change and there may be
a bug in the vectorized version
2009-11-20 06:34:46 -08:00
Jason Newton
c6c933b4ec module-equalizer-sink: (re)added output memblockq commented out timing debug statements 2009-11-20 06:34:46 -08:00
Jason Newton
d83dd5ba13 module-equalizer-sink:
add premultipliar to sse2 dsp_logic implementation
2009-10-29 19:10:16 -07:00
Jason Newton
ebaca56a75 module-equalizer-sink: try to limit buffering to mempool's max_block_size and disable debug output 2009-10-29 18:49:10 -07:00
Jason Newton
5c82dd67d0 drop redundant alloc call 2009-10-29 18:49:10 -07:00
Jason Newton
d25b9eab0f module-equalizer-sink: drop source executable permissions configure.ac: add enable/disable + summary line for fftw 2009-10-19 18:34:38 -07:00
Jason Newton
8f2289c563 module-equalizer-sink:
*fixed SSE2 optimized dsp logic (default if available)
    *cleaned up whitespace formatting (again)
2009-10-18 15:08:05 -07:00
Jason Newton
781eb594bb module-equalizer-sink: fixed equalizer state save/restore 2009-10-18 14:58:43 -07:00
Jason Newton
e895200169 module-equalizer-sink: disable active profile name restoration as something in pack/unpack is funky and I don't have time for a
proper fix
2009-10-02 02:14:56 -07:00
Jason Newton
97056d2a0e module-equalizer-sink: *added client initiated sync support for filter state *added note of possible unstable behavior with next-power-of-2 sample rate calculation 2009-10-02 02:14:56 -07:00
Jason Newton
a434f4c6af module-equalizer-sink: resyncing with head and fix invalid writes
* pa_log->debug for default equalizer notification
    * partially fixed infinite rewind bug
    * set max_request to window_size first iteration
    * swap order inside ROUND_UP calls
    * resync pa_sink_input_new changes
    * change pa_sample_clamp parameters to be correct to fix invalid writes
    * reenable proper reset logic + proper request size
2009-10-02 02:14:20 -07:00
Jason Newton
3053badf06 module-equalizer-sink: resync with ladspa parent sink 2009-09-29 23:50:54 -07:00
Jason Newton
263b683437 module-equalizer-sink: fix improper usage of pa_modargs_get_value_boolean for u->set_default 2009-09-29 23:50:54 -07:00
Jason Newton
f5ceed8151 module-equalizer-sink: added server side persistance of profile names 2009-09-29 23:50:54 -07:00
Jason Newton
b028e4e917 module-equalizer-sink: per-channel filtering support + profiles, easier default configuration 2009-09-29 23:50:54 -07:00
Jason Newton
2f6fd32cc5 module-equalizer-sink: fixed a bug w/ new zero-latency input scheme (that was an interesting/cool bug!) 2009-09-29 23:50:54 -07:00
Jason Newton
735c8ab6fb module-equalizer-sink: added support for preamp 2009-09-29 23:50:54 -07:00
Jason Newton
cd54ecdc8c module-equalizer-sink: drop old macros for new library based ones 2009-09-29 23:50:54 -07:00
Jason Newton
ab0e20ab2c module-equalizer-sink: fixed timeval initialization 2009-09-29 23:50:54 -07:00
Jason Newton
7bd7ce6dec module-equalizer-sink.c: swapped order of attach_within_thread and set_max_request within sink_input_attach_cb 2009-09-29 23:50:54 -07:00
Jason Newton
07cd6a4c3d module-equalizer-sink.c
i->sink -> i in pa_get_sink_max_request*
2009-09-29 23:50:53 -07:00
Jason Newton
1c1a812b32 module-equalizer-sink
exchanged improper usage of memblockq_peek'd memchunk for silence block
    dropped unneeded function prototypes
    changed mround to be slightly more elegant
    __restrict__ -> restrict for c99
    removed unneeded pa_aupdate_swap calls
    first_iteration -> pa_bool_t
    cleaned up some usage of pa_malloc0 where pa_new0 was more appropriate
    cruft removal, whitespace fixes and reordering of variables
2009-09-29 23:50:53 -07:00
Jason Newton
0e6711ddd0 module-equalizer-sink:
merging in upstream changes
    whitespace fix and fix for first iteration un-windowing
2009-09-29 23:50:53 -07:00
Jason Newton
38d608ad5a module-equalizer-sink:
reworked processing so we don't have input->output delay of R samples
2009-09-29 23:50:53 -07:00
Jason Newton
8c2f9763df module-equalizer-sink:
fix for peek returning a null memblock
    pa_log -> pa_log_debug for fft size
    updated module description
    fixed a comment in dbus error for incorrect x positions
2009-09-29 23:50:53 -07:00
Jason Newton
684ad6ddb7 module-equalizer-sink:
proper fix for pa_xmalloc(0) given that 0 is illegal
    fix coefficients in case there's no resume state
    loadprofile now signals filterchanged
2009-09-29 23:50:53 -07:00