Commit Graph

259 Commits

Author SHA1 Message Date
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
Pierre d'Herbemont 449fd28aaf Replace vlc_bool_t by bool, VLC_TRUE by true and VLC_FALSE by false.
This improves readability a lot and prevent us from reinventing the wheel.
2008-04-14 02:02:22 +02:00
Rafaël Carré 060298d296 audio_filter/: fix warnings
remove unused parameters from:
        EqzFilter() (equalizer.c)
        stereo_to_mono(), mono(), stereo2mono_downmix() (channel_mixer/mono.c)
2008-01-28 17:41:34 +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
Rémi Denis-Courmont 4f02842805 Revert the so-called whitelisting commits that are actually blacklisting 2008-01-16 17:51:21 +00:00
Rafaël Carré 806cf51658 input options whitelisting, step 2 (refs #1371) 2008-01-16 17:36:14 +00:00
Pierre d'Herbemont 981f85eb6b dtstospdif.c: Fix spdif type on big endian stream. (Patch by Julien Robert). 2007-12-30 17:48:26 +00:00
Pierre d'Herbemont 7b087611c2 audio_filter/converter/dtstospdif.c: Fix odd frame sized DTS conversion to SPDIF. Patch by Julien Robert <jul at mac.com>. (Reported to fix most of the current DTS issues). 2007-12-30 04:25:04 +00:00
Pierre d'Herbemont 3163d13850 dtstospdif.c: Print a warning on frame size changes. Hopefully it will help us to debug the issue with SPDIF. 2007-12-22 00:43:59 +00:00
Pierre d'Herbemont ee038b49f1 modules/audio_filter/converter/dtstospdif.c: We need a starting date. Fix a typo that cause the starting date not to be set. 2007-12-22 00:34:04 +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 ac58631713 Fixed uninitialized member fields for audio filter2. 2007-06-10 19:12:54 +00:00
Laurent Aimar bf48c33dbb Added a b_discontinuity to aout_buffer_t for non-pcm streams.
Set aout_buffer_t.b_discontinuity in mpeg audio packetizer.
Silent first 3 frames on discontinuity in mad decoder.
(close #590)
2007-06-04 19:39:55 +00:00
Rémi Denis-Courmont 7b0773e690 Use a vlc_CPU() wrapper instead of (ab)using libvlc_global 2007-05-19 21:43:16 +00:00
Rémi Denis-Courmont 49546ed7cb Switch to libdca API 2007-04-14 15:07:46 +00:00
Clément Stenac d81d5e5fce Merge all fixed-point and floating-point audio format converters 2006-11-26 18:59:52 +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
Jean-Paul Saman bdfdc2005c Mono audio filter is a channel_mixer and not a convertor. 2006-09-25 08:02:12 +00:00
Christophe Mutricy 8b21c8fc2c i18n fixes pointed by Marian Hikanik 2006-09-22 23:11:59 +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
Rémi Denis-Courmont cf4fe30a15 More 2006-09-12 18:57:45 +00:00
Jean-Paul Saman d407ed2a43 Do not select mono filter automatically 2006-08-31 12:37:15 +00:00
Jean-Paul Saman f9dfd9843c combine two channels into mono for the dowmix as last step. 2006-08-29 18:54:05 +00:00
Jean-Paul Saman 17afdb9122 Cleanup 2006-08-29 11:27:38 +00:00
Jean-Paul Saman 1d0b15b5cb Resample audio channels when doing real stereo to mono. 2006-08-29 09:49:07 +00:00
Jean-Paul Saman bf490f9f93 Reenable channel selection for mono: -1 = stereo mix of both channels, 0 = left channel, 1 = right channel, etc. 2006-08-28 11:45:18 +00:00
Jean-Paul Saman 88fbf53603 Fake the mono stream by duplicating it in both channels 2006-08-24 19:50:23 +00:00
Jean-Paul Saman 0c0c679545 put mono audio in both (left/right) channels. For some reason AOUT_CHAN_CENTER doesn't work. Somebody explain this to me, please. 2006-08-23 21:59:47 +00:00
Jean-Paul Saman 10e3212ea5 Downmix stereo to mono channel and choose with --sout-mono-channel <n> the destination channel. 2006-08-22 14:31:40 +00:00
Jean-Paul Saman 5f1df8ae1c cosmetic 2006-08-20 22:11:27 +00:00
Jean-Paul Saman c9c228096b First part of a new mono for audio filter 2. You can select the channel you want to hear all other channels are silenced.
TODO:
- stereo_to_mono downmix
2006-08-20 20:51:56 +00:00
Jean-Paul Saman c3f08a3daf Remove some whitespace 2006-08-20 20:48:35 +00:00
Jean-Paul Saman 6d7ee11806 Remove some whitespace 2006-08-20 20:47:57 +00:00
Jean-Paul Saman 5a4f826007 Fix memory leak 2006-08-13 14:31:02 +00:00
Clément Stenac 79f9f30aba More strings 2006-04-11 13:17:20 +00:00
Felix Paul Kühne 8e394d70cd * 2nd review of modules/audio* (refs #438) 2006-03-31 15:15:07 +00:00
Clément Stenac de6aa43586 Audio strings, except parametric equalizer (I just don't understand anything) - Refs:#438 2006-03-28 21:00:15 +00:00
Jean-Paul Saman 38540559f5 Update e-mail address 2006-03-09 09:47:30 +00:00
Rémi Denis-Courmont adc858d87a Uniformize source files encoding 2006-02-01 18:06:48 +00:00
Antoine Cellerier 2cb472dba0 FSF address change. 2006-01-12 23:10:04 +00:00
Sigmund Augdal Helberg 8f8be7fe25 a52tospdif.c: fix regression in recent changes 2005-12-04 17:10:22 +00:00
Gildas Bazin 507fe5c1c3 * modules/audio_filter/converter/a52tospdif.c: remove useless cruft. 2005-12-01 19:01:48 +00:00
Derk-Jan Hartman 9a675ed8b7 * Support little endian streams on Big endian output. In theory at least, the Mendelssohn_2.wav sample never worked for me. I think the dtssys demuxer has an endianness issue (probably in the header code or something). In my opinion the dtssys demux should only output big endian streams, because all DTS is generally big endian. It's just that .wav often isn't. 2005-12-01 17:09:00 +00:00
Derk-Jan Hartman 414f55ee34 Fix the a52 spdif filter, add big endian support to the DTS filter and add big endian support to the coreaudio module. Now if you use the coreaudio module, you can output encoded audio on the G5 and other systems. PLEASE check that your SPDIF support is not broken after this. 2005-12-01 16:14:18 +00:00
Derk-Jan Hartman b8840f72ca * Introduce 'spdb' the big endian variant of 'spdi' output. This will be needed for the encoded audio output on the PowerMac G5. Only A52 is supported so far. DTS support will follow later. (As well as the actual OSX output changes) 2005-12-01 14:12:16 +00:00
Boris Dorès 435dc16ddc + src/input/decoder.c src/libvlc.h:
- more precise message for the "force-dolby-surround" option
  - don't use -1 as a value in an integer list option (dangerous casts
    in the wxWidgets interface)
+ modules/audio_filter/converter/a52tofloat32.c:
  - option to disable the internal upmixing algorithm
+ modules/audio_filter/channel_mixer/headphone.c:
  - option to partially compensate the delay introduced by the algorithm
  - option to accept raw Dolby Surround encoded streams
2005-10-09 19:19:06 +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
Derk-Jan Hartman 0c8da59955 * Some changes to preferences categorization (This really needs a lot more work) 2005-06-10 15:29:32 +00:00
Felix Paul Kühne b95300b75a * controls.m: added l10n of the volume-string shown when changing the volume
* vcdx/vcdplayer.c: disabled l10n of various error messages
* vcdx/vcd.c: disabled l10n of 2 debug masks. They are horribly to translate and used by advanced users only, who should speak English well enough for this purpose
* rest: disabled l10n of various strings or debug masks which cannot be translated

more to come
2005-05-07 20:02:48 +00:00
Christophe Massiot 871193994d * modules/audio_filter/converter/mpgatofixed32 : Fixed a major bug with
downmixing ; completed downmixing options.
2005-04-08 16:38:59 +00:00
Gildas Bazin 564f48495f * modules/stream_out/transcode.c: prepare transcoder to use resampling/downmixing audio filters.
* modules/audio_filter/*: set the output format to what's really being output.
2005-03-17 20:39:52 +00:00
Gildas Bazin 77a1a28833 * modules/audio_filter/converter/mpgatofixed32.c: added downmixing from stereo to mono. 2005-03-17 08:20:53 +00:00
Gildas Bazin 7bedba63c2 * modules/audio_filter/converter/a52tofloat32.c: support for fixed point version of liba52. 2005-03-16 21:25:53 +00:00
Jean-Paul Saman d2e993b179 Removed unneeded VLC_OBJECT() cast and another segfault fix. 2005-03-11 09:49:38 +00:00
Jean-Paul Saman 2bbd7dd260 Same mistake here: Pass real VLC_OBJECT's to msg_* 2005-03-10 21:16:32 +00:00
Jean-Paul Saman b69210a521 Another one. Use real VLC_OBJECT's in msg_* 2005-03-10 21:12:28 +00:00
Jean-Paul Saman 84400dce0d Use VLC_OBJECT's to pass to msg_* functions otherwise all hell breaks lose. 2005-03-10 21:09:14 +00:00
Clément Stenac ef235f269c Preferences update :
- Sorted marq options
- A52 & DTS are audio decoders
- Moved freetype to subtitles/OSD

(last 2 suggested by Anil)
2005-03-10 00:17:33 +00:00
Gildas Bazin 00906ea88e * modules/codec/lpcm.c: support for 20/24 bits LPCM.
* modules/audio_filter/converter/s16tofloat32*, modules/audio_filter/format.c: s24l/s24b conversion routines.
2005-03-01 16:26:21 +00:00
Clément Stenac db5fedc623 For some unknown reason, the previous commit was not fully done 2004-12-16 18:14:29 +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
Gildas Bazin 03f2c9e9a0 * modules/audio_filter/converter/a52tofloat32.c,dtstofloat32.c: proper channel re-ordering using aout_ChannelReorder(). 2004-09-30 17:42:27 +00:00
Gildas Bazin b28de5319f * modules/audio_filter/converter/*: a couple of fixes for transcoding. 2004-09-08 14:10:20 +00:00
Clément Stenac bd91365c2d msg_Err -> msg_Dbg 2004-09-03 00:11:25 +00:00
Gildas Bazin 499a2fea75 * modules/audio_filter/converter/dtstofloat32.c,a52tofloat32.c,mpgatofixed32.c: release the old audio buffer after conversion. 2004-08-31 12:00:38 +00:00
Gildas Bazin 790d4277be * modules/audio_filter/converter/dtstofloat32.c,a52tofloat32.c: don't forget to update the size of the audio buffer after decoding. 2004-08-31 09:29:04 +00:00
Gildas Bazin ad4a7e63c7 * modules/audio_filter/converter/dtstofloat32.c: added implementation for the new audio filter architecture.
* codec/dts.c: bug fix.
* codec/araw.c: added more PCM formats to the encoder.
2004-08-29 00:40:43 +00:00
Gildas Bazin 44fb66b7f0 * modules/audio_filter/converter/a52tofloat32.c: added implementation for the new audio filter architecture. 2004-08-28 23:59:55 +00:00
Gildas Bazin 2a24c87ba6 * modules/stream_out/transcode.c:
- Re-use our audio decoder modules instead of using libavcodec directly.
  - No more dependance on libavcodec.
  (downmixing is currently broken + you have to force the ffmpeg codec for a52)
* modules/audio_filter/format.c:
  - PCM audio format conversion filter using the new common filter architecture.
* modules/audio_filter/converter/mpgatofixed32.c:
  - implements both the old and new filter architecture (ie. useable in the transcoder).
* modules/codec/ffmpeg/audio.c:
  - fixes and cleanup.
2004-08-27 13:31:23 +00:00
Sam Hocevar b5c2d452c9 * Really fixed strict aliasing breakage here and there. 2004-08-06 17:28:36 +00:00
Derk-Jan Hartman ccc91416c1 * bad main_data|_begin error of libmad now a Debug message. It's simply to common. 2004-08-05 19:52:59 +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 76922217d4 * ALL: bumped revision number to 0.7.1
* modules/audio_filter/converter/dtstofloat32.c: update for libdts-0.0.2
2004-02-29 13:05:22 +00:00
Derk-Jan Hartman a8d51df7c9 * Disable libmad on OS X 2004-02-25 23:28:04 +00:00
Gildas Bazin 56ebc45986 * modules/audio_filter/converter/dtstospdif.c: fixed the swab() replacement. 2004-02-15 21:52:59 +00:00
Gildas Bazin 3301dd40bf * modules/audio_filter/converter/dtstospdif.c: cough cough. 2004-02-08 00:15:04 +00:00
Gildas Bazin 623dd6d803 * modules/audio_filter/converter/dtstospdif.c: only swab big endian bitstreams. 2004-02-08 00:04:16 +00:00
Sigmund Augdal Helberg 042f3711de Fixed a segfault (don't try to memset a negative number of bytes) 2004-02-07 15:01:07 +00:00
Gildas Bazin a4b486148b * modules/video_output/directx/directx.c: fixed the "refresh" button for the --directx-device option.
* modules/demux/dts.c: implemented DEMUX_GET_TIME and DEMUX_GET_LENGTH.
* modules/access/cdda.c: got rid of the cdda demux and add a wav header at the beginning of the data.
   This allows to correctly support DTS audio cd (demux will detect what kind of CD it is).
* modules/demux/wav.c: code cleanup and fixed seeking.
2004-02-05 22:56:12 +00:00
Gildas Bazin 5e813078a9 * modules/audio_filter/converter/dtstospdif.c: don't forget to take care of the sample's starting date. 2004-02-04 23:28:10 +00:00
Gildas Bazin d810b69a21 * modules/audio_filter/converter/dtstospdif.c: oops forgot something. 2004-02-04 23:03:36 +00:00
Gildas Bazin 40becaa0cf * modules/codec/dts.c: removed s/pdif hack from DTS audio parser.
support for 14bits big endian bitstreams as well as 16bits little endian bitstreams.
* modules/audio_filter/converter/dtstospdif.c: accumulate DTS frames from parser until we have enough to fill an S/PDIF frame.
2004-02-02 23:49:46 +00:00
Gildas Bazin b5c5386544 * ALL: removed a bunch of unused add_category_hint(). 2004-01-25 18:53:07 +00:00
Felix Paul Kühne 19281d93a9 * Stringreview 2004-01-25 13:37:12 +00:00
Sam Hocevar d1c0b83659 * include/vlc_common.h:
+ Introduced intptr_t and uintptr_t.
  * Fixed compilation warnings here and there.
2003-12-04 16:02:54 +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 171966e294 * modules/audio_filter/converter/s16tofloat32swab.c:
added an #ifdef HAVE_ALLOCA.
2003-04-22 22:25:09 +00:00
Gildas Bazin a1e8137774 * modules/*: sanitization of the modules description strings. 2003-03-30 18:14:39 +00:00
Marc Ariberti 7980185da9 * all: added s16tofixed32 filter, so that we decode flac with iPaq ! 2003-03-12 23:59:19 +00:00
Jon Lech Johansen 1d5118e046 * DTS S/PDIF support. 2003-03-09 20:07:47 +00:00
Jon Lech Johansen dd81c779b8 * a52tofloat32.c: changed an error into warning. 2003-02-24 17:06:21 +00:00
Derk-Jan Hartman e035de4961 DJ's first steps in C and vlc decoders ;)
* modules/audio_filter/converter/mpgatofixed32.c:
  - fixed an issue that could cause glitches when switching from one stream
    to another. the buffer wasn't entirely getting 0000 because multiple
    channels were not taken into account when doing this.
* ALL:
  - if float32 then clear the buffer with (float)0
2003-02-21 16:31:37 +00:00
Derk-Jan Hartman 7002c3ed93 * previous commit seems to break some things. reverting. 2003-02-21 15:16:52 +00:00
Derk-Jan Hartman af80278165 * (float) 0 the buffer if it cannot be decoded and fixed32.
right Meuuh ??? ;)
2003-02-21 14:17:46 +00:00
Sigmund Augdal Helberg 5a13b475ce * include/configuration.h: added a new flag to the configuration stucture to
indicate wether it is an "advanced" option or not. The goal with this is to
hide the user from all the strange options that very seldom needs to be
changed. added an extra argument to all the add_* macros to indicate wether
the item is advanced or not.
* src/libvlc.h: added an "show advanced options" config option default
disabled
* src/libvlc.c: the advanced options are not listed by vlc --help and
friends unless --advanced is used
* modules/gtk/preferences.c: the gtk/gnome preferences dialog don't show
advanced options unless advanced is set
all: set the advanced flag to VLC_FALSE or VLC_TRUE for all options, by
using some common sense. Please check and correct

note: All interfaces should still work like they used to, see the change in
modules/gtk/preferences.c to find out how to "hide" options.

second note: I think I've changed all the modules, but I could not test
everyone for compilation, expect some broken modules (the fix is to add ",
VLC_TRUE" as last argument to the add_* I forgot)
2003-02-20 01:52:47 +00:00
Christophe Massiot 128f5ba7b2 Reverse stereo option. 2003-01-22 18:31:47 +00:00
Christophe Massiot cb4cb20239 * configure.ac.in: Re-added a52sys module, which was lost somewhere...
* Fixed bugs regarding Dolby Surround downmixing.
2003-01-22 09:54:29 +00:00
Christophe Massiot bd5872fb49 Used macro instead of hand-made code. 2003-01-20 17:52:26 +00:00
Christophe Massiot abdf248d40 Fixed a dozen bugs regarding mono audio files. 2003-01-20 10:59:29 +00:00
Sam Hocevar b25e0c1894 * ./modules/**/.cvsignore: added common *$(LIBEXT) values to .cvsignore. 2003-01-16 09:05:37 +00:00
Christophe Massiot 305bc15e9a * Totally rewrote the mad plug-in, in order to fix the PTS problems :
- Now using the low-level API of libmad,
- Decoding split in parsing & decoding (just like A/52),
- Should handle dual-mono files correctly,
* The old mpeg_audio plug-in can no longer work in this scheme and has
  been disabled. Please _always_ compile with mad from now on.
* Updated po files.
2003-01-15 10:58:48 +00:00
Christophe Massiot a1e7a1e625 Santa Claus brings to you :
* A placeholder for the Italian translation,
* A bug fix for mono streams on stereo speakers,
* A fix for a possible crash in the FTP access,
* Correct coordinates in OS X fullscreen modes (closing #47),
* Cosmetic fixes.
2002-12-25 02:23:37 +00:00
Jean-Paul Saman 087a7a0318 Cosmetic changes. 2002-12-24 19:09:12 +00:00
Christophe Massiot 8c2e1d884c Fixed a major bug in fixed32tos16.c. 2002-12-24 15:28:57 +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
Christophe Massiot 60b9d5a5e4 * Correct socklen_t detection.
* Fix for S/PDIF encapsulation on big endian systems.
* S/PDIF output for Mac OS X, courtesy of Heiko Panther <heiko_panthe@mac.com>.
2002-11-28 23:24:15 +00:00
Christophe Massiot a9bc769eaf Channel reordering according to the WG-4 specification, courtesy of
Heiko Panther.
2002-11-21 23:06:08 +00:00
Sam Hocevar 1fdc92cbe0 * ./modules/video_output/wingdi.c: skeleton of a Windows GDI video output.
* ./modules/access/file.c: the file access plugin gets the real file size
    under WinCE.
  * ./modules/audio_filter/converter/u8tofixed32.c: added this conversion
    filter to play some WAV files without an FPU.
  * ./bootstrap: bootstrap --update-vc doesn't rely on the Makefile's presence.
2002-11-21 13:53:32 +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
Sam Hocevar 22f2fa6176 * ./evc/plugins.vcp.in: fixed plugin entry points for WinCE.
* ./modules/*: fixed a bunch of modules so that they compile under WinCE,
    we now have access_file and the mpeg demux and video decoder working
    (http://zoy.org/~sam/vlc/pocketvlc2.png).
2002-11-20 13:37:36 +00:00
Christophe Massiot 4961a8745f Partial fix of the OS X audio output (thanks Heiko!). 2002-11-18 23:00:41 +00:00
Gildas Bazin 903aa1fa93 * modules/gui/wxwindows/interface.cpp: fixed typo.
* modules/audio_filter/converter/u8tofloat32.c: fixed typo.
2002-11-18 15:19:26 +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 3c60cbd66f * configure.ac.in, modules/audio_filter/converter/*: added a s8tofloat32.c and
u8tofloat32.c converter.
* modules/codec/araw.c: modified to also decode u8 pcm audio samples.
2002-11-08 14:23:49 +00:00
Christophe Massiot 4e9d790036 * Added -mdynamic-no-pic to darwin CFLAGS (can you believe I actually read ./ :)
* Miscellaneous small fixes.
2002-10-22 23:08:00 +00:00
Christophe Massiot 54929735f8 * modules/demux/mpeg: Added DVB stream type for A/52 streams (0x6),
* include/vlc_threads.h: Avoid locking the interface,
* ALL: reworked all audio output plug-ins to correctly take into account
  i_channels. At present this is known to break OSS, probably others.
2002-10-20 12:23: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 ef6c706bde * Makefile.old: Fixed BeOS compilation.
* ALL: Fewer overhead when resampling.
2002-09-27 23:38:04 +00:00
Christophe Massiot 7a58ef70ff * Major API change of the audio output. New aout_Dec* functions.
* Fixed a compile issue in s16tofloat32swab.
* Fixed a typo in demux/mpeg/ts.c.
2002-09-26 22:40:27 +00:00
Jon Lech Johansen 8ef0fc6323 * ./modules/audio_filter/converter/Makefile: Fixed typo. 2002-09-21 20:20:42 +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
Sam Hocevar df657969f7 * ./modules/audio_filter/converter/s16tofloat32swab.c: compilation fix for
systems which don't have swab(). Fixed a memory leak.
2002-09-18 12:20:37 +00:00
Henri Fallon fd0bc419bb lpcm support (tested on 1 source only) 2002-09-18 01:28:05 +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
Stéphane Borel 51d40ac72c .Fixed the length of the spdif frame. 2002-09-11 23:08:43 +00:00
Christophe Massiot 34c71967f9 The liba52 "codec" is now an audio filter. It means we are now able to
autodetect S/PDIF hardware support and the audio output plug-in chooses
the best one. Of course it probably breaks existing output modules, see
oss.c for hints :).

Also include minor tweaks which will entitle us to decode and output 5.1
audio. It may break existing plug-ins, too. See
audio_output.c:aout_FormatNbChannels for hints.
2002-09-02 23:17:06 +00:00
Christophe Massiot 5e1d56aeac * Fixed libmad's output volume. 2002-08-28 22:44:31 +00:00
Christophe Massiot 15f3b0f6fa * Miscellaneous S/PDIF fixes.
* New NextPTS() function, to replace CurrentPTS() (gives the PTS which will
  be valid for NEXT byte).
* Fixed mono mode in the builtin mpeg audio decoder.
* Various fixes related to PTS calculation in audio decoders.
2002-08-26 23:00:23 +00:00
Sam Hocevar 90a612c63e * ./modules/audio_filter/converter/fixed32tofloat32.c: fixed conversion.
* ./modules/codec/mad/libmad.c: ported to the latest aout changes. Still
    doesn't work here, though.
2002-08-22 17:14:52 +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
Sam Hocevar afa6c92607 * ./modules/codec/a52old/a52old.c: ported the old A52 decoder to aout3.
* ./modules/audio_filter/converter/s16tofloat32.c: converter needed for
    a52old, includes the walken trick and b_in_place = true.
2002-08-21 09:27:40 +00:00
Christophe Massiot 5ffbc97e75 * ./configure: Fixed double detection of gethostbyname.
* Major changes in the handling of dates in the audio output ; still buggy,
but differently.
* Fixed a major bug in the aout pre-filters, preventing to run any other
decoder than liba52.
* p_aout->output.pf_play now has only one argument.
2002-08-19 21:31:11 +00:00
Tony Castley 4eb6d12b81 This now compiles in BeOS. Probably others, the i was not declared. 2002-08-17 13:26:57 +00:00
Christophe Massiot eb93d56d8d * Changed aout_FormatTo* ; aout_FormatToSize does no longer exist.
p_buffer now has a i_nb_bytes member. It is possible to indicate for a
  format its byterate (necessary for AC3 and SPDIF).
* S/PDIF output seems to be working at last (tested with the file output).
2002-08-14 00:23:59 +00:00
Christophe Massiot 321841006c * New float32to* converter modules, courtesy of Xavier Maillard
<zedek@fxgsproject.org>.
* Fixed a bug in float32tos16, where gcc over-optimized a little and
  caused problems on some platforms (eg. solaris).
2002-08-13 22:42:23 +00:00
Sam Hocevar 2f67ba3cf2 * ./modules/audio_output/arts.c: ported the aRts module to aout3.
* ./modules/audio_filter/converter/*: fixed a bug in all the converters
    test routines (thx Meuuh).
2002-08-13 16:11:15 +00:00
Sam Hocevar eefc863b23 * ./modules/audio_output/esd.c: we now properly use the esd_get_latency()
return value to avoid audio starvation.
  * ./modules/audio_filter/converter/*: a little loop optimization trick.
  * ./src/audio_output/aout_ext-dec.c: removed this deprecated file.
2002-08-13 14:53:46 +00:00
Sam Hocevar 5a64fbd73a * ./modules/audio_output/oss.c: we spare a variable by using p_aout->b_die
instead of our own variable.
  * ./modules/audio_filter/converter/a52tospdif.c, ./modules/codec/a52.c: added
    <unistd.h>, required for bswap.
  * ./modules/demux/mp4/libmp4.c: removed an unneccessary semicolon in a
    macro definition.
  * ./modules/audio_output/esd.c: first attempt at getting esd to work.
  * ./modules/video_output/*: split sdl.so into a video and an audio plugin,
    and removed useless subdirectories.
  * ./modules/audio_output/sdl.c: compilation fix.
2002-08-13 11:59:36 +00:00