1. 26 Feb, 2009 6 commits
  2. 25 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. 16 Feb, 2009 1 commit
  5. 25 Jan, 2009 5 commits
  6. 18 Jan, 2009 1 commit
  7. 17 Jan, 2009 1 commit
  8. 16 Jan, 2009 1 commit
  9. 10 Jan, 2009 1 commit
    • Viliam Mateicka's avatar
      Introducing mixer api · 11c29ccc
      Viliam Mateicka authored
      This patch tryes to introduce pluggable mixer (struct mixer_plugin) along with some basic infrastructure (mixer_* functions). Instance of mixer (struct mixer) is used in
      alsa and oss output plugin
      11c29ccc
  10. 05 Jan, 2009 2 commits
  11. 04 Jan, 2009 1 commit
  12. 01 Jan, 2009 1 commit
  13. 31 Dec, 2008 1 commit
  14. 25 Nov, 2008 1 commit
  15. 29 Oct, 2008 3 commits
  16. 26 Oct, 2008 2 commits
  17. 14 Oct, 2008 2 commits
  18. 11 Oct, 2008 1 commit
    • Max Kellermann's avatar
      oss: fix opening default OSS device · 215d8aa8
      Max Kellermann authored
      Leftover from the output API changes: oss_open_default() was changed
      to return a void*, but it still returned "0" to report success.
      Report the OssData pointer instead.
      215d8aa8
  19. 10 Oct, 2008 2 commits
  20. 08 Oct, 2008 1 commit
  21. 29 Sep, 2008 2 commits
    • Max Kellermann's avatar
      use C99 struct initializers · de7cda1d
      Max Kellermann authored
      The old struct initializers are error prone and don't allow moving
      elements around.  Since we are going to overhaul some of the APIs
      soon, it's easier to have all implementations use C99 initializers.
      de7cda1d
    • Eric Wong's avatar
      Switch to C99 types (retaining compat with old compilers) · 0352766d
      Eric Wong authored
      Seeing the "mpd_" prefix _everywhere_ is mind-numbing as the
      mind needs to retrain itself to skip over the first 4 tokens of
      a type to get to its meaning.  So avoid having extra characters
      on my terminal to make it easier to follow code at 2:30 am in
      the morning.
      
      Please report any new issues you may come across on Free
      toolchains.  I realize how difficult it can be to build/maintain
      cross-compiling toolchains and I have no intention of forcing
      people to upgrade their toolchains to build mpd.
      
      Tested with gcc 2.95.4 and and gcc 4.3.1 on x86-32.
      0352766d
  22. 24 Sep, 2008 2 commits
    • 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: set audio_output->open=1 in audio_output_task() · 2403d32a
      Max Kellermann authored
      Since the output plugin returns a value indicating success or error,
      we can have the output core code assign the "open" flag.
      2403d32a