1. 25 Feb, 2009 2 commits
  2. 24 Feb, 2009 1 commit
  3. 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
  4. 19 Feb, 2009 1 commit
    • Max Kellermann's avatar
      utils: use g_usleep() instead of my_usleep() · e7131b5d
      Max Kellermann authored
      Now that I've found this nice function in the GLib docs, we can
      finally remove our custom sleep function.  Still all those callers of
      g_usleep() have to be migrated one day to use events, instead of
      regular polling.
      e7131b5d
  5. 16 Feb, 2009 1 commit
  6. 30 Jan, 2009 4 commits
    • Max Kellermann's avatar
      jack: don't override output_ports in connect() · eeec32fe
      Max Kellermann authored
      If no ports are configured, don't overwrite the (NULL) configuration
      with the port names of the first JACK server.  If the server changes
      after a JACK reconnect, MPD won't attempt to auto-detect again.
      eeec32fe
    • Max Kellermann's avatar
      jack: removed sample_rate callback · a93e73be
      Max Kellermann authored
      Currently, the JACK plugin manipulates the audio_format struct which
      was passed to the open() method.  This is very likely to break,
      because the plugin must not permanently store this pointer.  After
      this patch, MPD ignores sample rate changes.  It looks like other
      software is doing the same, and I guess this is a non-issue.
      
      This patch converts the audio_format pointer within jack_data into a
      static audio_format struct.
      a93e73be
    • Max Kellermann's avatar
      configure.ac: detect jack_set_info_function() · 59008276
      Max Kellermann authored
      jack_set_info_function() is not provided by older libjack versions.
      Attempt to detect if it is available.
      59008276
    • Max Kellermann's avatar
      jack: print info messages · 0d3dff95
      Max Kellermann authored
      Use jack_set_info_function() to install an info callback.  Don't let
      libjack print them to stderr.
      0d3dff95
  7. 29 Jan, 2009 13 commits
  8. 25 Jan, 2009 3 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
      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
  9. 18 Jan, 2009 4 commits
  10. 17 Jan, 2009 1 commit
  11. 02 Jan, 2009 2 commits
  12. 01 Jan, 2009 1 commit
  13. 29 Dec, 2008 1 commit
  14. 01 Nov, 2008 1 commit
  15. 29 Oct, 2008 1 commit
  16. 26 Oct, 2008 2 commits