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. 10 Oct, 2008 3 commits
  3. 08 Oct, 2008 1 commit
  4. 29 Sep, 2008 2 commits
  5. 23 Sep, 2008 1 commit
  6. 10 Sep, 2008 1 commit
    • Max Kellermann's avatar
      audio_format: added audio_format_clear() and audio_format_defined() · d9254369
      Max Kellermann authored
      audio_format_clear() sets an audio_format struct to an cleared
      (undefined) state, which is both faster and smaller than memset(0).
      audio_format_defined() checks if the audio_format struct actually has
      a defined value (i.e. non-zero).  Both can be used to avoid pointers
      to audio_format, replacing the "NULL" value with an "undefined"
      audio_format.
      d9254369
  7. 09 Sep, 2008 1 commit
  8. 07 Sep, 2008 3 commits
    • Max Kellermann's avatar
      pack the struct audio_format · dc7c6bd1
      Max Kellermann authored
      Due to clumsy layout, the audio_format struct took 12 bytes.  Move the
      "channels" to the end, so it can be merged into the same 32 bit slot
      as "bits", which reduces the struct size to 8 bytes.
      dc7c6bd1
    • Max Kellermann's avatar
      audio_format: converted typedef AudioFormat to struct audio_format · f1dd9c20
      Max Kellermann authored
      Get rid of CamelCase, and don't use a typedef, so we can
      forward-declare it, and unclutter the include dependencies.
      f1dd9c20
    • Eric Wong's avatar
      audio_format: volatile removal · 18fc10a9
      Eric Wong authored
      volatile provides absolutely no guarantee thread-safety in SMP
      environments.  volatile was designed to access memory locations
      in peripheral hardware directly; not for SMP.  If volatile is
      needed to work properly on SMP, then it is only hiding subtle
      bugs.
      
      volatile only prevents the /compiler/ from making optimizations
      when accessing variables.  CPUs do their own optimizations at
      runtime so it cannot guarantee registers of CPUs are flushed
      to memory cache-coherent access on different CPUs.
      
      Furthermore, the thread-communication via condition variables
      between threads sharing audio formats already results in memory
      barriers.
      18fc10a9
  9. 26 Aug, 2008 2 commits
  10. 12 Apr, 2008 1 commit
    • Max Kellermann's avatar
      clean up CPP includes · c89b358c
      Max Kellermann authored
      Try to only include headers which are really needed.  We should
      particularly check all "headers including other headers".  The
      long-term goal is to have a manageable, small API for plugins
      (decoders, output) without so many mpd internals cluttering the
      namespace.
      
      git-svn-id: https://svn.musicpd.org/mpd/trunk@7319 09075e82-0dd4-0310-85a5-a0d7c8717e4f
      c89b358c
  11. 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
  12. 01 Jun, 2007 1 commit
  13. 05 Apr, 2007 1 commit
  14. 11 Jan, 2007 1 commit
  15. 20 Aug, 2006 1 commit
  16. 20 Jul, 2006 1 commit
  17. 14 Jul, 2006 2 commits
  18. 13 Jul, 2006 1 commit
  19. 16 Nov, 2005 1 commit
  20. 13 Mar, 2005 1 commit
  21. 06 Mar, 2005 1 commit
  22. 03 Nov, 2004 2 commits
  23. 14 Apr, 2004 1 commit
  24. 18 Mar, 2004 1 commit
  25. 23 Feb, 2004 1 commit