1. 01 Jan, 2021 1 commit
  2. 23 Sep, 2020 1 commit
    • Max Kellermann's avatar
      LogLevel: rename DEFAULT to NOTICE · c843bce9
      Max Kellermann authored
      "DEFAULT" is a bad name - all it says is that it's the default value,
      but it doesn't say what it means.  The name NOTICE mimics the syslog
      level.
      c843bce9
  3. 16 Sep, 2020 3 commits
  4. 10 Jun, 2020 1 commit
  5. 14 Apr, 2020 1 commit
  6. 16 Mar, 2020 1 commit
  7. 12 Mar, 2020 1 commit
  8. 02 Feb, 2020 1 commit
  9. 18 Jan, 2020 1 commit
  10. 23 Dec, 2019 1 commit
  11. 03 Aug, 2019 1 commit
    • Max Kellermann's avatar
      player/Thread: don't restart unseekable song after failed seek attempt · f2d8fd76
      Max Kellermann authored
      The check IsSeekableCurrentSong() was added by commit
      44b20024 in version 0.20.19, but it
      caused a regression: by doing the branch only if the current song is
      seekable, the player would restart the current song if it was not
      seekable, and later the initial seek would fail; but we already know
      it's not seekable, and so we should fail early.
      f2d8fd76
  12. 17 Jun, 2019 1 commit
  13. 31 May, 2019 2 commits
  14. 20 May, 2019 2 commits
    • Max Kellermann's avatar
      player/Thread: fix "single" mode race condition · 923e6673
      Max Kellermann authored
      If the decoder finishes decoding the current song between the two
      IsIdle() checks, MPD stops playback instead of starting the decoder
      for the next song.
      
      This is usually not visible problem, because the main thread restarts
      it via playlist::ResumePlayback(), but that way it, ignores "single"
      mode.
      
      As a workaround, this commit adds another "queued" check which
      re-enters the player loop and checks again whether to start the
      decoder.
      
      Closes https://github.com/MusicPlayerDaemon/MPD/issues/556
      923e6673
    • Max Kellermann's avatar
      player/Thread: remove unnecessary "pipe" check · ff3e2c05
      Max Kellermann authored
      The "queued" flag can only possibly be set if the decoder is still
      decoding the current song or if the decoder is stopped.  This is also
      what the following assert() checks.  This check was not necessary.
      ff3e2c05
  15. 26 Apr, 2019 2 commits
  16. 19 Nov, 2018 1 commit
    • Max Kellermann's avatar
      check.h: remove obsolete header · ce49d99c
      Max Kellermann authored
      Since we switched from autotools to Meson in commit
      94592c14, we don't need to include
      `config.h` early to properly enable large file support.  Meson passes
      the required macros on the compiler command line instead of defining
      them in `config.h`.
      
      This means we can include `config.h` at any time, whenever we want to
      check its macros, and there are no ordering constraints.
      ce49d99c
  17. 12 Nov, 2018 1 commit
  18. 06 Nov, 2018 1 commit
  19. 31 Oct, 2018 1 commit
  20. 29 Oct, 2018 1 commit
  21. 23 Sep, 2018 3 commits
    • Max Kellermann's avatar
      player/Thread: calculate `buffered_before_play` based on a fixed duration · 5b2374b9
      Max Kellermann authored
      Previously, there was the setting `buffered_before_play` which
      specified a percentage of the audio buffer, defaulting to `10%`.  That
      was working well enough for quite some time, until high-quality audio
      formats became common.
      
      At 44.1 kHz, 16 bit stereo, MPD collected 2.3 seconds worth of data in
      the buffer before starting playback.  With the same default settings
      and 192 kHz, 24 bit stereo, that was only 0.27 seconds.
      
      Making this depend on the byte size only leads to high latency at low
      quality, and too little data at high quality.  The natural choice
      would be to use a duration instead of a byte size, which should give
      the same good experience with all audio formats.
      
      Since the `buffered_before_play` configuration setting was not
      understood well by users and caused more harm than good, this commit
      deprecates it.  It has now no effect.
      5b2374b9
    • Max Kellermann's avatar
      c1600bcf
    • Max Kellermann's avatar
      player/Thread: remove `buffered_before_play` from `decoder_wakeup_threshold` formula · 2f3845ef
      Max Kellermann authored
      Simplify the formula, and I guess this makes the formula more
      reliable.  Imagine somebody configured `buffered_before_play` larger
      than 25%; then the decoder would be woken up all the time.  This
      doesn't seem logical.  On the other hand, it's easy to understand that
      the decoder should be woken up below 75% buffer fill.
      2f3845ef
  22. 22 Sep, 2018 2 commits
  23. 21 Sep, 2018 10 commits