1. 14 Nov, 2002 2 commits
    • Christophe Massiot's avatar
      Major change of the channels management. p_format->i_channels disappeares · 8928554e
      Christophe Massiot authored
      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.
      8928554e
    • gbazin's avatar
      · 2547dac3
      gbazin authored
      * src/audio_output/intf.c: fixed a bug affecting audio volume initialization.
      2547dac3
  2. 13 Nov, 2002 1 commit
  3. 12 Nov, 2002 1 commit
    • Sam Hocevar's avatar
      * ./Makefile.am: fixed rc compilation under mingw32/cygwin. · df7cbb74
      Sam Hocevar authored
        * ./modules/access/http.c: fixed a segfault (unchecked strstr return value).
        * ./src/input/input_ext-plugins.c: removed platform-specific code and put
          it in plugins. This leads to some code duplication but I have an evil
          plan to get rid of that, too.
      df7cbb74
  4. 11 Nov, 2002 1 commit
    • gbazin's avatar
      · c0e8ae07
      gbazin authored
      * 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...
      c0e8ae07
  5. 10 Nov, 2002 1 commit
    • gbazin's avatar
      · b4f932ad
      gbazin authored
      * src/audio_output/output.c: fixed another quality affecting bug.
      
      * include/aout_internal.h src/audio_output/input.c: major change to the
         resampling algorithm. When resampling is requested to keep the audio stream
         synchronised to the main clock, we trigger it but we change the resampling
         rate only progressively so it doesn't get noticed too much by the listener.
      b4f932ad
  6. 08 Nov, 2002 1 commit
    • gbazin's avatar
      · d532cf3c
      gbazin authored
      * ALL: using "%ll" in printf format strings is not portable (notably on win32) so
         we now use the I64Fx familly of macros to print 64 bits numbers (x being
         replaced by d,i,o,u,x or X).
         eg: msg_Dbg( p_this, "sample is "I64Fi" late", ll_time );
      
      * src/misc/messages.c: got rid of ConvertPrintfFormatString().
      d532cf3c
  7. 01 Nov, 2002 1 commit
    • gbazin's avatar
      · 95efa086
      gbazin authored
      * src/audio_output/common.c, include/aout_internal.h: added a new function
         aout_FifoFirstDate() that allows the aout plugin to schedule the first
         play.
      * src/audio_output/output.c: fixed another problem affecting the audio quality.
      * modules/audio_output/directx.c: improvements. The buffering scheme has been
         changed to be less affected by temporary starving. We also schedule the first   sample to play.
      95efa086
  8. 31 Oct, 2002 1 commit
    • gbazin's avatar
      · cae5489a
      gbazin authored
      * modules/codec/spudec/spudec.c, modules/codec/spudec/parse.c: fixed a couple
         of problems introduced with the recent changes to the bitstream facility.
      * src/audio_output/output.c: fixed a quite annoying bug in aout3 that was
         triggering unnecessary trashing of audio frames.
      cae5489a
  9. 22 Oct, 2002 1 commit
  10. 21 Oct, 2002 1 commit
  11. 20 Oct, 2002 1 commit
  12. 09 Oct, 2002 1 commit
  13. 04 Oct, 2002 1 commit
    • Sam Hocevar's avatar
      * ./configure.ac.in: removed now unnecessary --force-exe-suffix flag. · 89987e11
      Sam Hocevar authored
        * ./src/misc/objects.c: structure_lock is now local.
        * ./src/misc/threads.c: implemented named mutexes which provide a handy
          way to protect data across plugins which might be sharing the same
          resources. Thread-unsafe libraries come to mind, but we can imagine
          using a named mutex for configuration files, or special devices.
        * ./include/main.h: removed global_lock because of vlc_mutex_need, removed
          p_global_data because it was never used, removed structure_lock because
          it did not belong here.
      89987e11
  14. 03 Oct, 2002 1 commit
    • Sam Hocevar's avatar
      * ./configure.ac.in: duplicated arguments to AM_INIT_AUTOMAKE to fix · f501554a
      Sam Hocevar authored
          locales breakage.
        * ./src/libvlc.c: libvlc understands the VLC_VERBOSE environment variable,
          to be set between 0 and 4. Default value is 0 for a program using libvlc,
          but vlc sets it to 1 by default.
        * ./src/misc/configuration.c: -v now works the old way (-v, -vv, -vvv) as
          well as the new way (-v0, -v1, -v4). -v1 is the same as -v, and -v0 is
          the same as -q (quiet). Hope it's all understandable.
      f501554a
  15. 30 Sep, 2002 2 commits
  16. 28 Sep, 2002 1 commit
  17. 27 Sep, 2002 1 commit
  18. 26 Sep, 2002 1 commit
  19. 23 Sep, 2002 1 commit
  20. 22 Sep, 2002 1 commit
  21. 20 Sep, 2002 1 commit
  22. 19 Sep, 2002 1 commit
  23. 18 Sep, 2002 1 commit
  24. 16 Sep, 2002 1 commit
  25. 02 Sep, 2002 1 commit
    • Christophe Massiot's avatar
      The liba52 "codec" is now an audio filter. It means we are now able to · 34c71967
      Christophe Massiot authored
      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.
      34c71967
  26. 30 Aug, 2002 2 commits
  27. 28 Aug, 2002 1 commit
  28. 26 Aug, 2002 1 commit
    • Christophe Massiot's avatar
      * Miscellaneous S/PDIF fixes. · 15f3b0f6
      Christophe Massiot authored
      * 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.
      15f3b0f6
  29. 25 Aug, 2002 2 commits
    • Sam Hocevar's avatar
      * ./modules/audio_output/oss.c, ./modules/audio_output/sdl.c: improved · fd94f31b
      Sam Hocevar authored
          sound synchronization.
        * ./src/audio_output/output.c: reverted another change I previously did :-)
      fd94f31b
    • Sam Hocevar's avatar
      * ./src/audio_output/output.c: reverted my previous aout_OutputNextBuffer · 51e99753
      Sam Hocevar authored
          prototype change; it looks like we won't need it after all.
        * ./src/audio_output/output.c: if audio output is too slow, but we
          know there is no next packet, then we play it anyway. Rationale behind
          this is: better play a slightly wrongly dated packet than play silence,
          because it might be wrongly dated but there are chances it won't break
          audio continuity.
        * ./modules/audio_output/sdl.c: workaround for SDL's crap audio output
          system (callback gets called at random times, and no way to know the
          latency of the samples being played). Audio output is now rather good
          here, but please give feedback.
        * ./modules/audio_output/oss.c: we delay a bit before asking for a new
          buffer to avoid starvation.
      51e99753
  30. 24 Aug, 2002 1 commit
  31. 21 Aug, 2002 1 commit
    • Christophe Massiot's avatar
      Big round of fixes in the aout3. · 1c13a987
      Christophe Massiot authored
      * 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).
      1c13a987
  32. 19 Aug, 2002 3 commits
  33. 14 Aug, 2002 2 commits