1. 30 Nov, 2008 2 commits
    • Max Kellermann's avatar
      shout: fixed the lame input buffer allocation · f600f4a2
      Max Kellermann authored
      "float (*lamebuf)[2] = g_malloc()" does NOT allocate two float*
      buffers.  The formula is even wrong: it should be applied to LAME's
      output buffer, not its input buffer.
      
      Converted "lamebuf" to the two variables "left" and "right", and
      allocate them independently with the exact buffer size.  Set
      right=left if mono output is configured.
      f600f4a2
    • Max Kellermann's avatar
      shout_mp3: cast input buffer to int16_t* · a7b692a1
      Max Kellermann authored
      It's easier to work with an int16_t* pointer here.
      a7b692a1
  2. 25 Nov, 2008 1 commit
  3. 26 Oct, 2008 2 commits
  4. 10 Oct, 2008 1 commit
  5. 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
  6. 29 Sep, 2008 1 commit
  7. 23 Sep, 2008 1 commit
  8. 12 Sep, 2008 4 commits
    • 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: 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