1. 25 Jan, 2009 9 commits
    • Max Kellermann's avatar
      use g_free() instead of free() · a45922cd
      Max Kellermann authored
      On some platforms, g_free() must be used for memory allocated by
      GLib.  This patch intends to correct a lot of occurrences, but is
      probably not complete.
      a45922cd
    • Max Kellermann's avatar
      mixer: removed mixer_configure(), configure mixer in mixer_new() · 8695b942
      Max Kellermann authored
      Allocate the mixer object when it is configured.
      
      Merged mixer_configure() into mixer_new().  mixer_new() was quite
      useless anyway.
      8695b942
    • Max Kellermann's avatar
      mixer: return a mixer struct pointer · 763dd8c1
      Max Kellermann authored
      Don't use statically allocated mixer objects.
      763dd8c1
    • Max Kellermann's avatar
      conf: allow param==NULL · 3635c93a
      Max Kellermann authored
      Return the default value in the conf_get_block_*() functions when
      param==NULL was passed.
      
      This simplifies a lot of code, because all initialization can be done
      in one code path, regardless whether configuration is present.
      3635c93a
    • Max Kellermann's avatar
      conf: const pointers in block get functions · 5f779100
      Max Kellermann authored
      All config_get_block_*() functions should accept constant config_param
      pointers.
      5f779100
    • Max Kellermann's avatar
      alsa: added comments · 7cc15ffc
      Max Kellermann authored
      Document alsa_data members.
      7cc15ffc
    • Max Kellermann's avatar
      alsa: frame_size is size_t, not int · fb3e43ed
      Max Kellermann authored
      frame_size is a memory size and should be a size_t, not a signed integer.
      fb3e43ed
    • Max Kellermann's avatar
      alsa: no CamelCase · d887b635
      Max Kellermann authored
      Renamed types, functions, variables.
      d887b635
    • Dan McGee's avatar
      alsa: fix option parsing and restore default period_time · 27baf691
      Dan McGee authored
      Two bugs here led to a large number of interrupts being generated on the
      sound card when ALSA output is being used. Because we specify no default
      period_time, the sound card gives us 3000 interrupts/sec rather than a more
      sane 20 or 30. This completes the revert of dd7711 already started by
      4ca24f.
      
      The larger bug was in the change to config_get_block_unsigned() and using 0
      as the default value for both 'buffer_time' and 'period_time'. This means
      any pre-setting of these options in newAlsaData() gets wiped out. Add a new
      default for period_time, and ensure default values for buffer_time and
      period_time are used if none are provided by the user.
      Signed-off-by: 's avatarDan McGee <dan@archlinux.org>
      [mk: set defaults in newAlsaData() to fix auto-configuration; renamed
      "_MS" back to "_US" because ALSA expects microseconds, not milliseconds]
      Signed-off-by: 's avatarMax Kellermann <max@duempel.org>
      27baf691
  2. 18 Jan, 2009 2 commits
  3. 17 Jan, 2009 2 commits
  4. 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
  5. 07 Jan, 2009 1 commit
  6. 04 Jan, 2009 1 commit
  7. 02 Jan, 2009 1 commit
  8. 01 Jan, 2009 1 commit
  9. 31 Dec, 2008 1 commit
  10. 29 Dec, 2008 1 commit
  11. 01 Dec, 2008 1 commit
  12. 03 Nov, 2008 1 commit
  13. 01 Nov, 2008 1 commit
  14. 29 Oct, 2008 2 commits
  15. 26 Oct, 2008 2 commits
  16. 14 Oct, 2008 2 commits
  17. 12 Oct, 2008 2 commits
  18. 11 Oct, 2008 2 commits
  19. 10 Oct, 2008 3 commits
  20. 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
  21. 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