1
mirror of https://code.videolan.org/videolan/vlc synced 2024-09-04 09:11:33 +02:00
Commit Graph

47 Commits

Author SHA1 Message Date
Laurent Aimar
f9cebacfbf * all: warning fixes.
* mpjpeg.c: use sout_CfgParse !
2005-04-26 07:23:56 +00:00
Gildas Bazin
2c93e8563e * modules/audio_filter/resampler/linear.c: ported linear resampler to audio filter 2 architecture. Patch courtesy of Matthew Hodgson (matthew at mxtelecom dot com) + cleanup and fixes by me. 2005-03-17 23:34:04 +00:00
Steve Lhomme
3d831e04ec Avoid \r\n problems between platforms 2005-03-02 16:47:31 +00:00
Clément Stenac
a90a19a6b0 Improvements to preferences
* Each module can declare a "human-readable short name" with set_name
* Modules are sorted by category (set_category, set_subcategory).
  Modules configs can be separated by set_section()
* Separated audio-filter and audio-visual
* Separated extraintf and control
* New command and widget : add_module_list() for comma-separated modules
* Vfilters now use "," as separator
2004-12-11 14:45:46 +00:00
Derk-Jan Hartman
efec617960 * Updated coreaudio resampler. will play small lpcm samples, but still crashes sometimes.
problem is writing to freed memory???
  possibly related to dropped buffers?
2004-11-07 20:01:54 +00:00
Sigmund Augdal Helberg
46bcf2ee7c Fixed a nasty memleak in ugly and linear resamplers when alloca is
unavaliable. Also swaped the score of these modules.
2004-06-18 12:38:28 +00:00
Sam Hocevar
4b9f4ff644 * Massive spelling corrections. 2004-04-27 16:35:15 +00:00
Sam Hocevar
45adedc913 * Added "Id" svn:keywords property to all files containing "$Id:".
* Removed .cvsignore files and added proper svn:ignore properties.
2004-03-05 17:34:23 +00:00
Gildas Bazin
c87d50dd85 * ALL: changed the prototype of module_Need() to accept a "strict" boolean argument.
If "strict" is true and a module name is provided then module_Need() will only look for the specified module
If "strict" is false, then module_Need() will first look for the specified module and if it wasn't found, will continue with the other modules with the same "capability".
2004-03-03 20:39:53 +00:00
Sam Hocevar
5ca0ebcca2 * Coding style cleanup: removed tabs and trailing spaces. 2003-12-22 14:32:57 +00:00
Sam Hocevar
fe17002d42 * bootstrap:
+ New build system, using recursive makefiles. Due to the amount of code
      in VLC, this had become unavoidable.
    + Removed the check for OS X's stack size, since our automake targets are
      a lot less hungry now.
    + Ditto for Solaris's sed.
    + Since automake-1.6 is faster than 1.7, use it first if both are present.
  * m4/vlc.m4:
    + New AX_ADD_CPPFLAGS, AX_ADD_CFLAGS, AX_ADD_CXXFLAGS, AX_ADD_OBJCFLAGS
      and AX_ADD_LDFLAGS macros that do all the magic to detect possible
      modules and register their flags.
    + New AX_ADD_BUILTINS and AX_ADD_PLUGINS macros.
    + Some magic to generate vlc-config.
  * configure.ac:
    + Moved most code to the AX_ADD_* macros.
    + Explicitely added all target Makefiles.
  * modules/**/Modules.am:
    + Path to sources are now relative to Modules.am's directory level.
2003-06-27 13:50:13 +00:00
Sam Hocevar
07b9ad3823 * modules/**/.cvsignore: added Makefile{,.in.am} to the ignore list, as
well as .lo/.la files.
2003-06-24 09:31:16 +00:00
Gildas Bazin
4525fffaf0 * configure.ac.in: removed the encoders from the list of plugins as they are not used currently.
* src/libvlc.h, modules/audio_filter/resampler/bandlimited.c: added an hq-resampling option to enable/disable the high quality resampling.
2003-05-17 11:35:14 +00:00
Christophe Massiot
84eeae3057 * modules/audio_filter/resampler/coreaudio.c: more accurate frame length
calculation
* modules/audio_output/coreaudio.c: apparently the audio card clock can
  be screwed, so probe it at every buffer
* src/audio_output/output.c: Thou shalt not drop buffers
2003-05-11 01:00:26 +00:00
Christophe Massiot
cdd8ef2420 * modules/audio_output/coreaudio.c: worked around a CoreAudio bug (should
fix the "sound drops after half an hour" bug)
* modules/audio_filter/resampler/coreaudio.c: reenabled the coreaudio
  resampler which works perfectly fine here
Please test that I didn't break S/PDIF output on OS X.
2003-05-04 15:02:42 +00:00
Christophe Massiot
bae3f95d86 * modules/codec/*: Fixed a PTS bug at the initialization of some codecs
* modules/audio_filter/resampler/coreaudio.c: Set score to 0
2003-03-31 22:39:28 +00:00
Christophe Massiot
00d327ff2c * Resampler plug-in based on CoreAudio's AudioConverter. 2003-03-30 01:13:37 +00:00
Gildas Bazin
70f5b0e11a * modules/audio_filter/resampler/bandlimited.c: another bug-fix ( should be the last one ;)
* install-win32: the FAQ wasn't being included in the package.
2003-03-05 22:37:05 +00:00
Gildas Bazin
faceb389ec * modules/audio_filter/resampler/bandlimited.c: added a few more sanity checks. 2003-03-05 19:31:32 +00:00
Gildas Bazin
4cc138893f * modules/audio_filter/resampler/bandlimited.c: small bug-fixes.
* NEWS: added a note for the fixed MSVC project files.
2003-03-04 22:08:33 +00:00
Gildas Bazin
1206810b7e * modules/audio_filter/resampler/bandlimited.c: fix bug that was affecting
quality badly + some clean-up.
   Changed the module priority so it is now the default resampler.
2003-03-04 19:28:39 +00:00
Gildas Bazin
75426e20e9 * modules/audio_filter/resampler/bandlimited.[ch]: new high-quality
bandlimited interpolation resampler.
   It is not yet enabled by default because it requires a bit more works
   (not fully stable yet because of buffer overflows under certain conditions).

* src/audio_output/input.c: the resamplers are now always active (expcept
   in spdif mode).

* modules/audio_filter/resampler/*: modified the resampler to return the
   input buffer when no resampling is needed.
2003-03-04 03:27:40 +00:00
Gildas Bazin
f0997cb2db * modules/audio_filter/resampler/linear.c: lowered the priority of the linear
resampler so the ugly resampler is once again the default. The quality of
   the ugly resampler is currently better than the linear one because of a
   design defect.
2003-02-17 09:47:16 +00:00
Christophe Massiot
d0588ae7fe * modules/gui/macosx/open.m: Removed channel server support
* po/*: Updated po files just before the 0.5.1 release
* modules/audio_filter/resampler/linear.c: fixed an initialization bug
2003-02-16 01:29:40 +00:00
Sam Hocevar
b25e0c1894 * ./modules/**/.cvsignore: added common *$(LIBEXT) values to .cvsignore. 2003-01-16 09:05:37 +00:00
Gildas Bazin
270c499464 * modules/gui/wxwindows/*: added skeleton for popup contextual menu.
* modules/access/dvdplay/access.c, modules/audio_filter/resampler/linear.c: a couple of warning
fixes.
2002-12-13 01:50:32 +00:00
Sam Hocevar
ade615bfc0 * ./configure.ac.in: removed -W in favour of -Wtraditional.
* ALL: a bunch of additional warning fixes.
2002-12-06 16:34:08 +00:00
Sam Hocevar
a6bb3a1fe8 * ./modules/audio_output/waveout.c: audio output now works under WinCE
using the waveout module.
  * ./bootstrap: we ignore comments when parsing makefiles.
  * ./modules/audio_filter/converter/fixed32tofloat32.c: changed this module
    so that it also does float32tofixed32.
  * ./modules/*: ported a few other modules to WinCE (most of the time it's
    just a #include <errno.h> that needs to be removed).
2002-11-20 16:43:33 +00:00
Gildas Bazin
42c786943d * modules/codec/vorbis.c, modules/audio_filter/resampler/linear.c: adapted to
the new changes in aout3.
2002-11-15 00:41:00 +00:00
Christophe Massiot
8928554ebd Major change of the channels management. p_format->i_channels disappeares
and is replaced by two members : i_physical_channels and i_original_channels.
i_physical_channels describes the channels which are effectively present
in the stream (at the current point of the aout pipeline), whereas
i_original_channels represents the channels we used to constitute the
stream. For instance a mono stream (FRONT_CENTER) may emanate from a
FRONT_LEFT channel of a STEREO stream.

Additionally, this contains hooks to dynamically select the audio device
and the channels configuration. In order to do that, all aout plugins,
and all interface plug-ins need to be adapted. Currently only SDL
(partially OSS) and the rc interface have been adapted, please use them
as a guide. Other aout plug-ins have been temporarily disabled.

IMPORTANT : if you need a working sound output, DO NOT UPDATE YOUR TREE
for several days until we fix that.

* modules/misc/network/ipv4.c: Fixed a long-standing segfault when saving
  preferences and asking for multicast.
2002-11-14 22:38:48 +00:00
Gildas Bazin
c0e8ae0766 * src/audio_output/filters.c, src/audio_output/input.c, include/aout_internal.h,
modules/audio_filter/resampler/*: Changes that allow the resamplers to set
   the start and end date of the frame it outputs.
   This allows us for instance to output a smaller frame than what we should, and
   keep the rest of the data to compute the resampling of the next frame.
   In short, we can implement much more complex resampling algorithms than before.

* modules/audio_filter/resampler/linear.c: rewrote the linear resampler. The audio
   quality doesn't seem to be better than the ugly resampler, maybe I shouldn't
   have wasted my time on this...
2002-11-11 22:27:01 +00:00
Gildas Bazin
255b41ac05 * modules/audio_output/file.c: will write a WAV header by default. Can be
disabled with --no-audiofile-wav.
* modules/audio_filter/resampler/linear.c: disabled for now, until I actually
   manage to make it work without a problem.
2002-11-11 19:16:21 +00:00
Sigmund Augdal Helberg
e6c4183305 ./ChangeLog: added entry for the linear resampler
./modules/audio_filter/resampler/linear.c: This should allways generate the
right number of samples now. The morale is never base your floating point
calculations on the output of integer divitions.
2002-11-10 13:24:35 +00:00
Sigmund Augdal Helberg
802def2aea added a new resampler based on linear interpolation, giving a fair tradeoff
between sound quality and speed
2002-11-07 21:09:59 +00:00
Christophe Massiot
d86bf0f41a * Fixed filters which couldn't work with more than 2 channels ;
* Fixed detection of VCD support under OS X.2.
2002-10-15 23:10:54 +00:00
Christophe Massiot
9a6b90b855 * Made audio_sample_format->i_format a FOURCC to allow the creation of
new ones.
2002-09-30 21:32:33 +00:00
Sam Hocevar
7cca8d8fa0 * ./debian/rules: moved the gtk_main and gnome_main plugins to the gvlc
and gnome-vlc packages.
  * ALL: updated .cvsignore files to properly ignore automake files.
2002-09-30 15:46:47 +00:00
Sam Hocevar
2799d36bc8 * ALL: the build mechanism now uses automake. See HACKING for more details.
* ./mozilla/vlcplugin.cpp: javascript support for the Mozilla plugin.
  * debian/rules: the A52 module is now in a separate package.
2002-09-30 11:05:42 +00:00
Sam Hocevar
864128116a * ALL: added *.am files here and there for future automake support. 2002-09-30 10:00:47 +00:00
Christophe Massiot
b5ab493010 * Finally fixed the segfault when resampling.
* Reactivated the A/52 demux.
* Wrote a real full-featured float32 mixer.
2002-08-28 22:25:39 +00:00
Sam Hocevar
cd7b79940d * ./modules/audio_filter/resampler/ugly.c: simple resampler which does not
insert blank samples, but changes pitch.
2002-08-24 20:22:34 +00:00
Sam Hocevar
33913b063c * ./modules/audio_filter/resampler/trivial.c: fixed a buffer size calculation
issue in the trivial resampler.
2002-08-24 16:07:48 +00:00
Christophe Massiot
1c13a98745 Big round of fixes in the aout3.
* Audio and video should now _always_ be perfectly in sync.
* Changes in a52.c (end_date management) must be ported to other codecs,
  otherwise mixer errors will appear.
* Audio output plug-in can now tell whether they can handle a little
  clock drift (for instance, inserting zeroes after a pause).
2002-08-21 22:41:59 +00:00
Christophe Massiot
8d5c85f26f * Fixed a variable overflow bug in the audio output.
* Prepared for some advances in the aout3 clock management.
* Added the first stone of the forthcoming stream output.
2002-08-12 22:12:51 +00:00
Christophe Massiot
7acb51f93a * Fixed a bug triggering the trivial resampler when it was unnecessary. 2002-08-10 20:01:00 +00:00
Christophe Massiot
9000920a11 * Trivial resampler plug-in (resampling still non-functional)
* Begun writing some hooks for forthcoming S/PDIF support
* ./modules/access/vcd/cdrom.c: compile fix for Darwin
2002-08-09 23:47:23 +00:00
Christophe Massiot
58c63dc950 Added another level of directory in audio_filter/. 2002-08-08 22:26:56 +00:00