1. 31 Oct, 2008 1 commit
    • Max Kellermann's avatar
      added prefix to header macros · ea515494
      Max Kellermann authored
      "LOG_H" is a macro which is also used by ffmpeg/log.h.  This is
      ffmpeg's fault, because short macros should be reserved for
      applications, but since it's always a good idea to choose prefixed
      macro names, even for applications, we are going to do that in MPD.
      ea515494
  2. 29 Oct, 2008 1 commit
  3. 08 Oct, 2008 2 commits
  4. 29 Sep, 2008 1 commit
    • Max Kellermann's avatar
      audio_output: added method pause() · 6e21e24c
      Max Kellermann authored
      pause() puts the audio output into pause mode: if supported, it may
      perform a special action, which keeps the device open, but does not
      play anything.  Output plugins like "shout" might want to play silence
      during pause, so their clients won't be disconnected.  Plugins which
      do not support pausing will simply be closed, and have to be reopened
      when unpaused.
      
      This pach includes an implementation for the shout plugin, which
      sends silence chunks.
      6e21e24c
  5. 10 Sep, 2008 1 commit
  6. 09 Sep, 2008 2 commits
  7. 08 Sep, 2008 1 commit
  8. 07 Sep, 2008 3 commits
  9. 06 Sep, 2008 1 commit
  10. 29 Aug, 2008 2 commits
  11. 26 Aug, 2008 1 commit
  12. 02 Jun, 2008 1 commit
  13. 12 Apr, 2008 4 commits
  14. 26 Mar, 2008 1 commit
  15. 03 Jan, 2008 1 commit
    • Eric Wong's avatar
      Cleanup #includes of standard system headers and put them in one place · cb8f1af3
      Eric Wong authored
      This will make refactoring features easier, especially now that
      pthreads support and larger refactorings are on the horizon.
      
      Hopefully, this will make porting to other platforms (even
      non-UNIX-like ones for masochists) easier, too.
      
      os_compat.h will house all the #includes for system headers
      considered to be the "core" of MPD.  Headers for optional
      features will be left to individual source files.
      
      git-svn-id: https://svn.musicpd.org/mpd/trunk@7130 09075e82-0dd4-0310-85a5-a0d7c8717e4f
      cb8f1af3
  16. 01 Jan, 2008 1 commit
  17. 05 Apr, 2007 1 commit
  18. 20 Aug, 2006 1 commit
  19. 01 Aug, 2006 1 commit
  20. 30 Jul, 2006 2 commits
    • Eric Wong's avatar
      Standardize state_file handling routines. · 12aec573
      Eric Wong authored
      This way it's easier to manage and extend.
      
      git-svn-id: https://svn.musicpd.org/mpd/trunk@4494 09075e82-0dd4-0310-85a5-a0d7c8717e4f
      12aec573
    • Eric Wong's avatar
      interface/connection malloc reductions from mpd-ke · 4cf5d04c
      Eric Wong authored
      This patch massively reduces the amount of heap allocations at
      the interface/command layer.  Most commands with minimal output
      should not allocate memory from the heap at all.  Things like
      repeatedly polling status, currentsong, and volume changes
      should be faster as a result, and more importantly, not a source
      of memory fragmentation.
      
      These changes should be safe in that there's no way for a
      remote-client to corrupt memory or otherwise do bad stuff to
      MPD, but an extra set of eyes to review would be good.  Of
      course there's never any warranty :)
      
      No longer do we use FILE * structures in the interface, which means
      we don't have to allocate any new memory for most connections.
      
      Now, before you go on about losing the buffering that FILE *
      +implies+, remember that myfprintf() never took advantage of
      any of the stdio buffering features.
      
      To reduce the diff and make bugs easier to spot in the diff,
      I've kept myfprintf in places where we write to files (and not
      network interfaces).  Expect myfprintf to go away entirely soon
      (we'll use fprintf for writing regular files).
      
      git-svn-id: https://svn.musicpd.org/mpd/trunk@4483 09075e82-0dd4-0310-85a5-a0d7c8717e4f
      4cf5d04c
  21. 20 Jul, 2006 1 commit
  22. 16 Jul, 2006 1 commit
  23. 14 Jul, 2006 1 commit
  24. 13 Jul, 2006 1 commit
  25. 08 May, 2006 1 commit
  26. 18 Mar, 2006 1 commit
    • Eric Wong's avatar
      rewrite statefile code for audio devices · a25acbc9
      Eric Wong authored
      In the words of the original author, it was 'crappy'.  I tend to
      agree :)
      
      The code has also been broken for at least the past few months,
      and nobody bothered fixing it
      
      The previous format it was overly complex: 5 lines to describe
      each device.  The new format is one-line per-device:
      
      audio_device_state:%d:%s
      
      %d - 0 for disabled, any integer for enabled
      %s - name of the device as specified in the config file,
      whitespace and all
      
      Incompatibilities:
      
      * Output names are now _required_ to be unique.
      
      This is required because the new format relies solely on the
      name of the audio device.
      
      Relying on the device IDs internal to MPD was a bad idea
      anyways since the user usually has none or very little idea
      how they're generated, and adding a new device or removing
      one from a config would throw things off completely.
      
      This is also just a Good Idea(TM) because it makes things
      less confusing to users when they see it in their clients.
      
      * Output states are not preserved from the previous format.
      
      Not a big deal, since the previous code was never officially
      released.  Also, it's been broken for months now, so I doubt
      anybody would notice :)
      
      git-svn-id: https://svn.musicpd.org/mpd/trunk@3928 09075e82-0dd4-0310-85a5-a0d7c8717e4f
      a25acbc9
  27. 23 Aug, 2005 1 commit
  28. 05 Mar, 2005 1 commit
  29. 02 Nov, 2004 3 commits