1. 13 Oct, 2008 14 commits
  2. 12 Oct, 2008 9 commits
  3. 11 Oct, 2008 13 commits
  4. 10 Oct, 2008 4 commits
    • Max Kellermann's avatar
      player: don't wake up decoder after every frame · 17d9c170
      Max Kellermann authored
      The decoder was woken up after each chunk which had been played.  That
      caused a lot of superfluous context switches.  Wake up the decoder
      only when a certain amount of the buffer has been consumed.  This
      formula is somewhat arbitrary, and has to be proven experimentally.
      17d9c170
    • Max Kellermann's avatar
      mp3: dither an arbitrary number of channels · f41fe1e0
      Max Kellermann authored
      The mp3 plugin did not use the MAD_NCHANNELS() value correctly: when a
      stream was not stereo, it was assumed to be mono, although the correct
      number was passed to MPD.  libmad doesn't support more than 2
      channels, but this change allows gcc to optimize its inlining
      strategy.
      f41fe1e0
    • Max Kellermann's avatar
      mp3: hard-code dithering to 16 bits · bac13660
      Max Kellermann authored
      The dithering function audio_linear_dither() worked for signed 16 bits
      only anyway, having a variable "bits" just disables important gcc
      optimizations.
      bac13660
    • Max Kellermann's avatar
      player: added player_get_audio_format() · 5de75219
      Max Kellermann authored
      player_get_audio_format() replaces getPlayerSampleRate(),
      getPlayerBits(), getPlayerChannels().
      5de75219