Commit Graph

593 Commits

Author SHA1 Message Date
Rémi Denis-Courmont 244a35b030 dca: set output buffer size correctly (fixes #6509, fixes #7459)
Some filters and outputs rely on the samples count (which was correct),
others on the bytes size (which was not), accounting for why decoding
failed only in some combinations.
2012-10-01 22:04:20 +03:00
Rémi Denis-Courmont 6f74124e45 Revert "Add new API to libvlc for persistent equalizer settings."
This reverts commit 32596ea810.
2012-09-21 13:54:55 +03:00
Mark Lee 32596ea810 Add new API to libvlc for persistent equalizer settings.
New methods are provided to:

 - get the available equalizer presets;
 - get the available frequency bands (useful for creating a UI);
 - create a new default equalizer, or create a new equalizer from a preset;
 - release a previously created equalizer;
 - get/set preamp and individual frequency amplification values;
 - apply equalizer settings to a media player.

Equalizer settings are persistent, can be made whether media is currently playing or not, and will automatically be applied to subsequently played media.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2012-09-15 15:16:17 +02:00
Rémi Denis-Courmont 0bafe94c50 Remove empty *_DEPENDENCIES in makefiles 2012-09-06 16:55:32 +03:00
Rémi Denis-Courmont ca923dceb2 Separate string list and string list callback
The configuration system cannot store both a static list and a dynamic
one (and AFAIK, it never could). It only makes to use either a static
list or a callback.
2012-08-15 10:50:48 +03:00
Rémi Denis-Courmont cd9561239e mad: do not convert to from FI32 to FL32 on the fly
Let the conversion plugin(s) do that. They can be optimized.
2012-08-14 21:59:28 +03:00
Rémi Denis-Courmont 27a3a08018 speex: speex resampler is broken, drop priority to zero
The library introduces noise in unclear circumstances. There does not
seem to be any problem on VLC side though. I do not have time and
expertise to troubleshoot this.
2012-07-24 17:42:56 +03:00
Rémi Denis-Courmont ed8f436aeb aout: cleanup mixer and rename to volume 2012-07-17 22:49:59 +03:00
Rémi Denis-Courmont 970d70aca0 audio: remove FI32 conversions
Conversion from FI32 to S16 is already supported by the Laurent's
generic audio format filter. Conversion to FI32 are useless for lack
of (functional) FI32 encoder or output.
2012-07-04 22:43:55 +03:00
Rémi Denis-Courmont 469bc90f5a Channel mixer: drop FI32 2012-07-04 22:43:55 +03:00
Rafaël Carré 31c8cef1ba s/vlc_memcpy/memcpy/
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2012-07-03 18:06:46 +03:00
Rafaël Carré 3172a979cc Remove vlc_memset 2012-07-02 13:10:56 +02:00
Rémi Denis-Courmont e2b439cfa1 Replace remaining instances of aout_buffer_t with block_t 2012-05-22 23:21:16 +03:00
Rémi Denis-Courmont 118603100b Add "audio resampler" capability to resamplers 2012-05-03 23:00:03 +03:00
Rémi Denis-Courmont f20299c236 Do not apply AOUT_CHAN_PHYSMASK to i_physical_channels
It only makes sense for i_original_channels.
2012-04-21 19:23:46 +03:00
Hugo Beauzée-Luyssen d70ea1feb1 spatializer: Kill a warning. 2012-04-16 10:42:26 +02:00
Ron Wright eb19c5d5ba Equalizer: support new samplerates and bands
Support for more samplerate than 44100 and 48000
Support for classic ISO bands instead of Winamp ones

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2012-04-15 17:17:04 +02:00
Ludovic Fauvet d12a7e6593 Add a trivial audio gain filter
This module is a wrapper around an audio mixer.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2012-03-29 17:48:15 +03:00
Jean-Baptiste Kempf 600d2090fb Spatializer: init variables correctly
Close #6514
2012-03-28 00:34:59 +02:00
Jean-Baptiste Kempf be8542ade3 Spatializer: more sane default for Wet value and limit all values
I am not sure this filter ever worked as intended.
It was providing serious distortions.

This is now limiting seriously the space of parameters but at least it
does not explode anymore. Should close #4887

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2012-03-27 23:59:46 +02:00
Edward Wang b3e61d25ca stereo_widen: enhance strings
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2012-03-19 15:23:02 +01:00
Sukrit Sangwan 57dfca01b1 Chorus: cleanup and quality fixes
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2012-03-16 12:19:42 +01:00
Sukrit Sangwan 962d67d2b4 Improve Stereo Widen description/help
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2012-03-16 00:04:41 +01:00
Rémi Denis-Courmont 6493879248 DTS: rework post audio_filter conversion and fix buffer size
Although this was not reported, this suffered the same problem as A52.
2012-03-13 13:26:12 +02:00
Rémi Denis-Courmont a6e127f134 a52: cleanup and fix buffer size
This closes a heap overflow on corrupt files.

Pointed-out-by: Clément Lecigne <clemun@gmail.com>
2012-03-13 13:26:11 +02:00
Sukrit Sangwan df1f5e2182 stereo_widen : filter to enhance stereo
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2012-03-12 10:29:51 +01:00
Rémi Denis-Courmont fc247b6f84 simple mixer: unduplicate channels definitions 2012-03-08 21:49:38 +02:00
Rémi Denis-Courmont f39ad0efe9 Unduplicate WG4 channels order 2012-03-08 21:48:57 +02:00
Rémi Denis-Courmont c07d0c4cd3 SRC: default to fastest SinC
It is good enough for normal people with only half the CPU usage of
medium quality SinC.
2012-03-07 19:29:42 +02:00
Jean-Baptiste Kempf e15926296f Spatializer: limit damp range
Close #6143
2012-02-25 17:49:34 +01:00
Jean-Baptiste Kempf 52a743dfdf Revert "Invert speex_dsp and src score capabilities"
This reverts commit 5c261b04db.
SRC is CPU usage too damn high!
2012-02-23 17:57:33 +01:00
Jean-Baptiste Kempf afe73220ad SRC: add missing translatable strings 2012-02-11 15:46:17 +01:00
Cheng Sun 10d3c50696 Audio channel remapping filter
This filter allows channels to be remapped. Potential uses include
downmixing, or to correct non-standard channel orders.

Modified-by: Jean-Baptiste Kempf <jb@videolan.org>
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2012-01-12 01:58:57 +01:00
Jean-Baptiste Kempf 5c261b04db Invert speex_dsp and src score capabilities
This is probably temporary, since SRC is more computationly intensive than speex_dsp
But this close #5781
2012-01-05 14:25:58 +01:00
Jean-Baptiste Kempf c53d878a0f Audiobar: add necessary spaces 2012-01-04 01:32:47 +01:00
Cheng Sun 0e874482db Fix mono audio filter condition check
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2011-12-19 17:09:43 +02:00
Rémi Denis-Courmont 86d9aabfe7 speex resampler: add 10% slack output space
This should fix buffer underflows when changing the playback rate.
We probably should instead reallocate the buffer and resume resampling
when the situation occurs, but that would be a lot more complicated.
2011-12-07 21:23:27 +02:00
Jean-Baptiste Kempf 63c55b2d22 Fix various preferences typos 2011-12-04 23:42:19 +01:00
Jean-Baptiste Kempf 303de67a0d Mono: fix channel order 2011-12-04 16:17:09 +01:00
Jean-Baptiste Kempf 9b68f5d12a Simplify help string
We already have the integer list for that.
2011-12-04 15:52:47 +01:00
Rémi Denis-Courmont 3e633bab1d ugly: better module description 2011-11-20 11:48:27 +02:00
Rémi Denis-Courmont 1600cff844 speex: increase default quality to 4
On rare/unreproducible occasions, level 3 seem to induce lots of noise.
2011-11-18 18:03:19 +02:00
Rémi Denis-Courmont 2ee87126c2 speex: fix occasional buffer overflow
(VLC simply lost one sample - no memory errors.)
2011-10-31 22:16:57 +02:00
Jean-Baptiste Kempf 24c463913b Spatializer: kill warnings and improve locality 2011-10-31 00:42:18 +01:00
Jean-Baptiste Kempf bc1445691f Audiobar: fix copyright years and shortname 2011-10-22 03:31:36 +02:00
Rémi Denis-Courmont 32f5d458ac Print an errorr if a resampler skipped input frames 2011-10-19 18:24:46 +03:00
Rémi Denis-Courmont 8f51f1bc92 Speex resampler (for FL32 and S16N)
This adds a good resampler for integers, while reusing a source package
(speex) that is already dependend on.

Contrary to SRC, the library is BSD and the plugin is LGPL.
2011-10-16 21:33:15 +03:00
Rémi Denis-Courmont 4875845b44 Add trivial ugly stereo karaoke filter 2011-10-08 11:47:13 +03:00
Jean-Baptiste Kempf 0d4e25c3d8 Audiobar: remove unused variable
If you don't actually use the return of a function, don't store it.
2011-09-29 15:28:43 +02:00
Rémi Denis-Courmont cece0cc754 Remove filter_t.pf_audio_buffer_new 2011-09-05 22:54:57 +03:00