1. 21 Apr, 2009 1 commit
  2. 26 Mar, 2009 1 commit
  3. 14 Mar, 2009 2 commits
  4. 13 Mar, 2009 1 commit
    • Avuton Olrich's avatar
      all: Update copyright header. · 0aee49bd
      Avuton Olrich authored
      This updates the copyright header to all be the same, which is
      pretty much an update of where to mail request for a copy of the GPL
      and the years of the MPD project. This also puts all committers under
      'The Music Player Project' umbrella. These entries should go
      individually in the AUTHORS file, for consistancy.
      0aee49bd
  5. 10 Mar, 2009 2 commits
  6. 08 Mar, 2009 2 commits
    • Max Kellermann's avatar
      alsa: determine buffer_time if not already known · ab656a52
      Max Kellermann authored
      This patch fixes a theoretical (but practically impossible) flaw: the
      variable "buffer_time" may be uninitialized when it is used.
      Initialize the variable with snd_pcm_hw_params_get_buffer_time().
      ab656a52
    • Max Kellermann's avatar
      alsa: better period_time default value for high sample rates · 554a34fb
      Max Kellermann authored
      The default values for buffer_time and period_time were both capped by
      the hardware limits on practically all chips.  The result was a
      period_time which was half as big as the buffer_time.  On some chips,
      this led to lots of underruns when using a high sample rate (192 kHz),
      because MPD had very little time to send new samples to ALSA.
      
      A period time which is one fourth of the buffer time turned out to be
      much better.  If no period_time is configured, see how much
      buffer_time the hardware accepts, and try to configure one fourth of
      it as period_time, instead of hard-coding the default period_time
      value.
      
      This is yet another attempt to provide a solution which is valid for
      all sound chips.  Using the SND_PCM_NONBLOCK flag also seemed to solve
      the underruns, but put a lot more CPU load to MPD.
      554a34fb
  7. 03 Mar, 2009 2 commits
  8. 02 Mar, 2009 1 commit
  9. 01 Mar, 2009 1 commit
  10. 26 Feb, 2009 1 commit
    • Max Kellermann's avatar
      output_plugin: report errors with GError · ec926539
      Max Kellermann authored
      Use GLib's GError library for reporting output device failures.
      
      Note that some init() methods don't clean up properly after a failure,
      but that's ok for now, because the MPD core will abort anyway.
      ec926539
  11. 25 Feb, 2009 3 commits
  12. 23 Feb, 2009 2 commits
    • Max Kellermann's avatar
      output: pass the music chunk pointer as void*, not char* · a4dfab2a
      Max Kellermann authored
      The meaning of the chunk depends on the audio format; don't suggest a
      specific format by declaring the pointer as "char*", pass "void*"
      instead.
      a4dfab2a
    • Max Kellermann's avatar
      output_api: play() returns a length · 5a898c15
      Max Kellermann authored
      The old API required an output plugin to not return until all data
      passed to the play() method is consumed.  Some output plugins have to
      loop to fulfill that requirement, and may block during that.  Simplify
      these, by letting them consume only part of the buffer: make play()
      return the length of the consumed data.
      5a898c15
  13. 16 Feb, 2009 1 commit
  14. 25 Jan, 2009 9 commits
    • Max Kellermann's avatar
      use g_free() instead of free() · a45922cd
      Max Kellermann authored
      On some platforms, g_free() must be used for memory allocated by
      GLib.  This patch intends to correct a lot of occurrences, but is
      probably not complete.
      a45922cd
    • Max Kellermann's avatar
      mixer: removed mixer_configure(), configure mixer in mixer_new() · 8695b942
      Max Kellermann authored
      Allocate the mixer object when it is configured.
      
      Merged mixer_configure() into mixer_new().  mixer_new() was quite
      useless anyway.
      8695b942
    • Max Kellermann's avatar
      mixer: return a mixer struct pointer · 763dd8c1
      Max Kellermann authored
      Don't use statically allocated mixer objects.
      763dd8c1
    • Max Kellermann's avatar
      conf: allow param==NULL · 3635c93a
      Max Kellermann authored
      Return the default value in the conf_get_block_*() functions when
      param==NULL was passed.
      
      This simplifies a lot of code, because all initialization can be done
      in one code path, regardless whether configuration is present.
      3635c93a
    • Max Kellermann's avatar
      conf: const pointers in block get functions · 5f779100
      Max Kellermann authored
      All config_get_block_*() functions should accept constant config_param
      pointers.
      5f779100
    • Max Kellermann's avatar
      alsa: added comments · 7cc15ffc
      Max Kellermann authored
      Document alsa_data members.
      7cc15ffc
    • Max Kellermann's avatar
      alsa: frame_size is size_t, not int · fb3e43ed
      Max Kellermann authored
      frame_size is a memory size and should be a size_t, not a signed integer.
      fb3e43ed
    • Max Kellermann's avatar
      alsa: no CamelCase · d887b635
      Max Kellermann authored
      Renamed types, functions, variables.
      d887b635
    • Dan McGee's avatar
      alsa: fix option parsing and restore default period_time · 27baf691
      Dan McGee authored
      Two bugs here led to a large number of interrupts being generated on the
      sound card when ALSA output is being used. Because we specify no default
      period_time, the sound card gives us 3000 interrupts/sec rather than a more
      sane 20 or 30. This completes the revert of dd7711 already started by
      4ca24f.
      
      The larger bug was in the change to config_get_block_unsigned() and using 0
      as the default value for both 'buffer_time' and 'period_time'. This means
      any pre-setting of these options in newAlsaData() gets wiped out. Add a new
      default for period_time, and ensure default values for buffer_time and
      period_time are used if none are provided by the user.
      Signed-off-by: 's avatarDan McGee <dan@archlinux.org>
      [mk: set defaults in newAlsaData() to fix auto-configuration; renamed
      "_MS" back to "_US" because ALSA expects microseconds, not milliseconds]
      Signed-off-by: 's avatarMax Kellermann <max@duempel.org>
      27baf691
  15. 18 Jan, 2009 2 commits
  16. 17 Jan, 2009 2 commits
  17. 10 Jan, 2009 1 commit
    • Viliam Mateicka's avatar
      Introducing mixer api · 11c29ccc
      Viliam Mateicka authored
      This patch tryes to introduce pluggable mixer (struct mixer_plugin) along with some basic infrastructure (mixer_* functions). Instance of mixer (struct mixer) is used in
      alsa and oss output plugin
      11c29ccc
  18. 07 Jan, 2009 1 commit
  19. 04 Jan, 2009 1 commit
  20. 02 Jan, 2009 1 commit
  21. 01 Jan, 2009 1 commit
  22. 31 Dec, 2008 1 commit
  23. 29 Dec, 2008 1 commit