1. 09 Feb, 2009 6 commits
  2. 30 Jan, 2009 1 commit
  3. 25 Jan, 2009 2 commits
  4. 18 Jan, 2009 2 commits
  5. 17 Jan, 2009 2 commits
  6. 08 Jan, 2009 1 commit
  7. 23 Dec, 2008 2 commits
  8. 25 Nov, 2008 2 commits
  9. 31 Oct, 2008 1 commit
  10. 29 Oct, 2008 2 commits
  11. 26 Oct, 2008 1 commit
  12. 12 Oct, 2008 2 commits
  13. 10 Oct, 2008 2 commits
  14. 09 Oct, 2008 1 commit
    • Max Kellermann's avatar
      shout: removed DISABLED_SHOUT_ENCODER_PLUGIN · 5583b6c5
      Max Kellermann authored
      Having an array with disabled entries sucks.  Removed that
      DISABLED_SHOUT_ENCODER_PLUGIN macro, and fill the plugin list only
      with plugins which are actually enabled.  This should be done for all
      plugin types.
      5583b6c5
  15. 08 Oct, 2008 1 commit
  16. 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
      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
  17. 24 Sep, 2008 3 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
    • 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
  18. 12 Sep, 2008 7 commits
    • Max Kellermann's avatar
      shout: don't write empty buffers · 89c8b19a
      Max Kellermann authored
      Add a check to write_page() which checks if there is actually data.
      Don't bother to call shout_send() if there is not.
      89c8b19a
    • Max Kellermann's avatar
      shout: removed clear_shout_buffer() · 42f61771
      Max Kellermann authored
      The function is trivial, without a benefit.  Also don't initialize
      buf.data[0], this is not a null terminated string.
      42f61771
    • Max Kellermann's avatar
      shout: make the shout_buffer static · 265b8fff
      Max Kellermann authored
      Since the buffer size is known at compile time, we can save an
      indirection by declaring it as a char array instead of a pointer.
      That saves an extra allocation, and we can calculate with the
      compile-time constant sizeof(data) instead of the attribute "max_len".
      265b8fff
    • Max Kellermann's avatar
      shout: constant plugin declarations · ebd19499
      Max Kellermann authored
      Declare both shout plugins "const", since they will never change, once
      initialized at compile time.
      ebd19499
    • Max Kellermann's avatar
      shout: static encoder plugin list · d9f170b5
      Max Kellermann authored
      Shout encoder plugins are known at compile time.  There is no reason
      to use a complex data structure as "List" to manage them at runtime -
      just put the pointers into a static array.
      d9f170b5
    • Max Kellermann's avatar
      shout: removed typedefs on structs and plugin methods · a84de9b0
      Max Kellermann authored
      Don't typedef the structs at all.  It is easier to forward-declare
      this way.
      
      Don't typedef methods.  They are used exactly once, a few lines below.
      a84de9b0
    • Eric Wollesen's avatar
      shout: added mp3 encoder · 5f8eebd1
      Eric Wollesen authored
      [mk: moved this patch after "Refactor and cleanup of shout Ogg and MP3
      audio outputs".  The original commit message follows, although it is
      outdated:]
      
      Creation of shout_mp3 audio output plugin. Basically I just copied the
      existing shout plugin and replaced ogg with lame. Uses lame for mp3
      encoding. Next step is to pull common functionality out of each shout
      plugin and share it between them.
      
      Configuration options for "shout_mp3" are the same as for "shout".
      5f8eebd1