1. 03 Nov, 2009 5 commits
  2. 31 Oct, 2009 3 commits
  3. 13 Aug, 2009 1 commit
  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. 05 Mar, 2009 1 commit
    • Max Kellermann's avatar
      pipe: added music_buffer, rewrite music_pipe · 01cf7fea
      Max Kellermann authored
      Turn the music_pipe into a simple music_chunk queue.  The music_chunk
      allocation code is moved to music_buffer, and is now managed with a
      linked list instead of a ring buffer.  Two separate music_pipe objects
      are used by the decoder for the "current" and the "next" song, which
      greatly simplifies the cross-fading code.
      01cf7fea
  6. 15 Feb, 2009 1 commit
  7. 25 Jan, 2009 1 commit
  8. 28 Dec, 2008 1 commit
  9. 08 Nov, 2008 1 commit
  10. 03 Nov, 2008 3 commits
  11. 02 Nov, 2008 1 commit
  12. 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
  13. 30 Oct, 2008 1 commit
  14. 08 Oct, 2008 2 commits
  15. 29 Sep, 2008 1 commit
  16. 24 Sep, 2008 1 commit
  17. 07 Sep, 2008 1 commit
  18. 26 Aug, 2008 14 commits
    • Max Kellermann's avatar
      moved code to pc_init(), dc_init() · e2c8b960
      Max Kellermann authored
      e2c8b960
    • Max Kellermann's avatar
      renamed decode.h to decoder_control.h · 56cdce69
      Max Kellermann authored
      56cdce69
    • Max Kellermann's avatar
      renamed decode.c to decoder_thread.c · dff8c645
      Max Kellermann authored
      It should be obvious in which thread or context a function is being
      executed at runtime.  The code which was left in decode.c is for the
      decoder thread itself; give the file a better name.
      dff8c645
    • Max Kellermann's avatar
      moved enum decoder_command to decoder_api.h · 15c9352b
      Max Kellermann authored
      The decoder plugins need this type, so export it in the public API.
      This allows is to remove "decode.h" from "decoder_api.h", uncluttering
      the API namespace some more.
      15c9352b
    • Max Kellermann's avatar
      moved variable "dc" to decode.h · 1c03c721
      Max Kellermann authored
      Now that "dc" is available here, we don't have to pass it to
      decoder_is_idle() and decoder_is_starting() anymore.
      1c03c721
    • Max Kellermann's avatar
      hide DecoderControl accesses in inline functions · 70904adf
      Max Kellermann authored
      Unfortunately, we have to pass the DecoderControl pointer to these
      inline functions, because the global variable "dc" may not be
      available here.  This will be fixed later.
      70904adf
    • Max Kellermann's avatar
      added decoder_control.c · 8a4970f8
      Max Kellermann authored
      The source "decoder_control.c" provides an API for controlling the
      decoder.  This replaces various direct accesses to the DecoderControl
      struct.
      8a4970f8
    • Max Kellermann's avatar
      moved code to player_thread.c · e8bd9ddc
      Max Kellermann authored
      Move code which runs in the player thread to player_thread.c.  Having
      a lot of player thread code in decode.c isn't easy to understand.
      e8bd9ddc
    • Max Kellermann's avatar
      added decoder_command_finished() to decoder_api.h · 78c55e24
      Max Kellermann authored
      Some decoder commands are implemented in the decoder plugins, thus
      they need to have an API call to signal that their current command has
      been finished.  Let them use the new decoder_command_finished()
      instead of the internal dc_command_finished().
      78c55e24
    • Max Kellermann's avatar
      moved struct AudioFormat to audio_format.h · 1b845f94
      Max Kellermann authored
      We want to expose the AudioFormat structure to plugins; remove some
      clutter by moving its declaration to a separate header file.
      1b845f94
    • Max Kellermann's avatar
      invoke the notify API directly · 241cd043
      Max Kellermann authored
      Don't use wrappers like player_wakeup_decoder_nb().  These have been
      wrappers calling notify.c functions, for compatibility with the
      existing code when we migrated to notify.c.
      241cd043
    • Max Kellermann's avatar
      added dc_command_finished() · 9e0f7dcd
      Max Kellermann authored
      dc_command_finished() is invoked by the decoder thread when it has
      finished a command (sent by the player thread).  It resets dc.command
      and wakes up the player thread.  This combination was used at a lot of
      places, and by introducing this function, the code will be more
      readable.
      9e0f7dcd
    • Max Kellermann's avatar
      merged start, stop, seek into DecoderControl.command · 8d3942e0
      Max Kellermann authored
      Much of the existing code queries all three variables sequentially.
      Since only one of them can be set at a time, this can be optimized and
      unified by merging all of them into one enum variable.  Later, the
      "command" checks can be expressed in a "switch" statement.
      8d3942e0
    • Max Kellermann's avatar
      added dc.next_song, renamed pc.current_song · d507ff28
      Max Kellermann authored
      Since pc->current_song denotes the song which the decoder should use
      next, we should move it to DecoderControl.  This removes one internal
      PlayerControl struct access from the decoder code.
      
      Also add pc.next_song, which is manipulated by the playlist code, and
      gets copied to dc.next_song as soon as the decoder is started.
      d507ff28