1. 25 Nov, 2008 1 commit
  2. 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
  3. 29 Oct, 2008 1 commit
  4. 08 Oct, 2008 1 commit
  5. 29 Sep, 2008 2 commits
    • 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
    • Max Kellermann's avatar
      audio_output: added function audio_output_is_pending() · c13e8b51
      Max Kellermann authored
      The function audio_output_is_pending() returns whether there is a
      pending command.  This is useful for output plugins as a break
      condition for longer loops.
      c13e8b51
  6. 24 Sep, 2008 6 commits
    • Max Kellermann's avatar
      5cf62133
    • Max Kellermann's avatar
      output: make "struct audio_output" opaque for output plugins · acc4a0ba
      Max Kellermann authored
      We have eliminated direct accesses to the audio_output struct from
      the all output plugins.  Make it opaque for them, and move its real
      declaration to output_internal.h, similar to decoder_internal.h.
      
      Pass the opaque structure to plugin.init() only, which will return the
      plugin's data pointer on success, and NULL on failure.  This data
      pointer will be passed to all other methods instead of the
      audio_output struct.
      acc4a0ba
    • Max Kellermann's avatar
      output: added audio_output_closed() · 63fb1efb
      Max Kellermann authored
      The JACK output plugin needs to reset its "opened" flag when the JACK
      server fails.  To prevent it from accessing the audio_output struct
      directly introduce the API function audio_output_closed().
      63fb1efb
    • Max Kellermann's avatar
      output: added audio_output_get_name() · 3be5db04
      Max Kellermann authored
      Reduce direct accesses to the audio_output struct from the plugins:
      this time, eliminate all accesses to audio_output.name.  The name is
      required by some plugins for log messages.
      3be5db04
    • Max Kellermann's avatar
      output: pass audio_format to plugin.init() and plugin.open() · 3cae6856
      Max Kellermann authored
      Pass the globally configured audio_format as a const pointer to
      plugin.init().  plugin.open() gets a writable pointer which contains
      the audio_format requested by the plugin.  Its initial value is either
      the configured audio_format or the input file's audio_format.
      3cae6856
    • Max Kellermann's avatar
      output: one thread per audio output · d32f49a9
      Max Kellermann authored
      To keep I/O nastiness and latencies away from the core, move the audio
      output code to a separate thread, one per output.  The thread is
      created on demand, and currently runs until mpd exits.
      d32f49a9
  7. 11 Sep, 2008 2 commits
  8. 09 Sep, 2008 1 commit
  9. 08 Sep, 2008 1 commit
  10. 07 Sep, 2008 4 commits
  11. 29 Aug, 2008 2 commits
  12. 26 Aug, 2008 1 commit
  13. 12 Apr, 2008 3 commits
  14. 05 Feb, 2008 1 commit
  15. 26 Jan, 2008 1 commit
  16. 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
  17. 13 Jun, 2007 1 commit
  18. 12 Jun, 2007 1 commit
  19. 10 Jun, 2007 1 commit
  20. 30 May, 2007 1 commit
  21. 24 May, 2007 1 commit
  22. 05 Apr, 2007 1 commit
  23. 14 Jan, 2007 2 commits
  24. 26 Aug, 2006 1 commit
    • Eric Wong's avatar
      Replace strdup and {c,re,m}alloc with x* variants to check for OOM errors · 90847fc8
      Eric Wong authored
      I'm checking for zero-size allocations and assert()-ing them,
      so we can more easily get backtraces and debug problems, but we'll
      also allow -DNDEBUG people to live on the edge if they wish.
      
      We do not rely on errno when checking for OOM errors because
      some implementations of malloc do not set it, and malloc
      is commonly overridden by userspace wrappers.
      
      I've spent some time looking through the source and didn't find any
      obvious places where we would explicitly allocate 0 bytes, so we
      shouldn't trip any of those assertions.
      
      We also avoid allocating zero bytes because C libraries don't
      handle this consistently (some return NULL, some not); and it's
      dangerous either way.
      
      git-svn-id: https://svn.musicpd.org/mpd/trunk@4690 09075e82-0dd4-0310-85a5-a0d7c8717e4f
      90847fc8
  25. 20 Aug, 2006 2 commits