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

58 Commits

Author SHA1 Message Date
Rémi Denis-Courmont
430be231b6 Remove all default modules from configure.ac 2010-01-16 15:25:01 +02:00
Rémi Denis-Courmont
6c9479be6c i_nb_bytes -> i_buffer
(Yeah, some automatic variables were renamed too)
2009-09-23 20:33:19 +03:00
Pierre d'Herbemont
acac88798e spdif: Add a comment to explicitely explain why we don't free old buffer. 2009-09-03 23:30:53 +02:00
Laurent Aimar
790f188af5 Fixed segfault with spdif mixer.
The aout core use a hack to avoid useless memcpy: the buffer in which
to mix is the same as the one in the first active input fifo.
2009-09-03 22:40:02 +02:00
Rafaël Carré
f76500382d aout_BufferAlloc() : remove stack allocation
alloca() was not used anyway on OSX and BSD, due to smaller stack sizes,
and we can't assume a default stack size anyway

I expect the performance loss to be minimal, but worth the code
simplification anyway (i didn't benchmark)

aout_BufferAlloc() is moved into its own function in a .c file instead
of being a macro

Since there is now 2 types of allocations (HEAP and NONE), make
i_alloc_type a boolean (true = HEAP alloc, false = NO alloc)

make aout_BufferFree() a static inline function in the same process.
Prototype doesn't change since the provided buffer doesn't need to be
set to NULL (I checked all the callers)
2009-09-03 15:03:07 +02:00
Laurent Aimar
69b165935b Updated "audio mixer" to new aout_mixer_t module API. 2009-08-25 23:17:00 +02:00
Pierre d'Herbemont
57ef9e4388 spdif: Use aout_FifoPop() which checks locking and fix a aout_FifoPop() leak.
Pointed-out-by a warning.
2009-08-20 11:31:02 +02:00
Jean-Baptiste Kempf
7ec73fa968 Kill warnings of unused variables in audio_* 2009-08-20 10:53:52 +02:00
Laurent Aimar
724461bdf2 Used VLC_CODEC_* and vlc_fourcc_GetCodec when suitable.
There will be some regressions, I used automatic sed replacement with manual
checks but there was a lot to change.
 It's only the first pass.
2009-05-13 21:18:19 +02:00
Rémi Denis-Courmont
0549228196 Remove most stray semi-colons in module descriptions
Those multi-lines are still to be done (it's going to be fun...)
See also 5af4cc854b.
2008-10-29 22:14:26 +02:00
Laurent Aimar
da93449d1e Added aout pause support.
This does not work well. It seems that a high level of audio is buffered
inside aout after the input fifo (mixer or output one).
2008-09-30 22:22:34 +02:00
Rémi Denis-Courmont
fa0e963f7f Move a bunch of plugins out of configure.ac 2008-09-05 20:01:25 +03:00
Rémi Denis-Courmont
3561b9b28f Plugins: include vlc_common.h directly instead of vlc/vlc.h 2008-05-31 22:10:30 +03:00
Rémi Denis-Courmont
13ae40b0ef Use gettext_noop() consistently 2008-05-21 20:19:25 +03:00
Rémi Denis-Courmont
27d483e9ef Include vlc_plugin.h as needed 2008-05-08 19:20:21 +03:00
Rémi Denis-Courmont
5b55ee1bb0 Use vlc_memset/vlc_memcpy 2008-05-03 17:17:30 +03:00
Rémi Denis-Courmont
2ea3b5fc8a Don't re-invent uint8_t - remove byte_t
Also sizeof(byte_t)^Wsizeof(uint8_t) can only ever be 1, if it is
defined. It's not defined, if char is more than 8 bits, and uint8_t is
not provided, but then VLC will not compile in the first place.
2008-05-01 17:30:52 +03:00
Rémi Denis-Courmont
fa9abba62f Check-in modules/Makefile.am
It was a bit clumsy to have to modify it through bootstrap.
2008-03-23 21:53:10 +02:00
Rémi Denis-Courmont
aaf004a2f6 Don't include stddef without checking for it. 2008-02-03 20:12:50 +00:00
Rémi Denis-Courmont
99fab9089e Don't include config.h from the headers - refs #297.
Missing some cases that I could not test.
Also ffmpeg/chroma.c is locked, so I can but leave it broken.
Fix is for the remaining modules is obvious and the issue is easy to detect.
2008-01-23 21:50:58 +00:00
Rafaël Carré
6ee1e193fd Removes trailing spaces. Removes tabs. 2007-09-10 18:56:52 +00:00
Rémi Denis-Courmont
e40d134c69 Remove _GNU_SOURCE and string.h too 2007-08-20 19:10:23 +00:00
Rémi Denis-Courmont
81c5ac29fa Remove stdlib.h 2007-08-20 19:08:22 +00:00
Laurent Aimar
d20dd24295 Added replay gain support (audio-replay-gain-mode track or album to activate
it, disabled by default)
2007-06-17 13:54:20 +00:00
Clément Stenac
d3fe7f2879 A bit of headers cleanup
* Headers in include must contain the structures and prototypes needed
  by the plugins and should be named vlc_*.
* Headers in include/vlc must contain the structures and prototypes
  needed by external libvlc clients

* Moved and renamed some things in headers. 
   - Removed vlc_cpu.h, vlc_error.h (merged in vlc_common)
   - Removed snapshot.h (merged in vlc_vout.h)
   - Removed vlc_spu.h (merged in vlc_osd.h)
   - Removed intf_eject.h and vlc_interaction.h (merged in vlc_interface)
   - Moved all internal headers to src
   - Merged vlc_video.h and video_output.h and move private things to src
   - Removed vlc/intf.h, vlc/aout.h, vlc/vout.h, vlc/decoder.h and vlc/input.h
     (meta headers for use in modules, and often implying too large 
     dependencies)
* Removed some useless dependencies
* Unexported a bunch of functions and structures used only in src/
  (--> Still some work here)
* Finally made input_thread_t and input_source_t (mostly) private. 
  Added input_GetItem to fetch the input_item of an input_thread
* Cleaned up deprecated entries in vlc_symbols.h and bumped up symbol 
  prefix

This commit has a 99% probability of breaking the build, 0.1% of killing
your cat and 0% of getting you hot chicks.
2006-11-26 14:20:34 +00:00
Clément Stenac
f485214f09 For consistency, remove references to vlc from libvlc
Also, make it clearer what is shared and instance-specific

So,
libvlc_t ==> libvlc_global_t
vlc_t ==> libvlc_int_t (internal instance)

p_object->p_libvlc ==> p_object->p_libvlc_globale
p_object->p_vlc ==> p_object->p_libvlc

VLC_OBJECT_VLC ==> VLC_OBJECT_LIBVLC

And by the way, there is some cleanup required :) (ie, some things are created in the global object instead of the instance-specific one)
2006-09-15 14:31:51 +00:00
Antoine Cellerier
2cb472dba0 FSF address change. 2006-01-12 23:10:04 +00:00
Rémi Denis-Courmont
fe087a3828 Make Zorglub less unhappy 2005-07-09 06:17:09 +00:00
Rémi Denis-Courmont
85b29bdc28 Copyright fixes
(da big courmischage)
2005-07-08 18:12:44 +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
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
Felix Paul Kühne
82a67660c9 string review by Christophe Mutricy aka xtophe 2004-01-25 17:20:19 +00:00
Sam Hocevar
88991a5ce9 * include/vlc_common.h:
+ Removed u8, s8, u16 etc. for good.
  * ALL:
    + Replaced all occurrences of u8, s8, u16 etc. with uint8_t, int8_t, etc.
2003-10-25 00:49:14 +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
a1e8137774 * modules/*: sanitization of the modules description strings. 2003-03-30 18:14:39 +00:00
Sam Hocevar
b25e0c1894 * ./modules/**/.cvsignore: added common *$(LIBEXT) values to .cvsignore. 2003-01-16 09:05:37 +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
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
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
f4bd25843d * Several stability patches for multiple input streams aout. 2002-09-28 13:05:16 +00:00
Christophe Massiot
d198a80352 * Fixed miscellaneous cosmetic issues with lpcm and s16tofloat32swab modules.
* First hooks for changing the audio output plug-in and its parameters
  on-the-fly.
2002-09-20 23:27:04 +00:00
Christophe Massiot
81442b6bf1 * Audio volume management now works properly. See src/audio_output/intf.c
for information on how to use it in your interface plug-ins. In the
  SDL vout, b and n are mapped to sound down/sound up.
* Fixed a major in the mad plug-in with wrong dates.
* Fixed a compilation bug.
2002-09-19 21:56:40 +00:00
Christophe Massiot
cf891bad55 * configure.in: Fixed detection of Qt-embedded.
* modules/codec/a52.c: Fixed detection of A/52 sound.
* modules/audio_filter/converter/a52tofloat32.c: Fixed a bug related to
  downmixing.
* ALL: Added hooks for audio volume management.
2002-09-16 20:46:38 +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