1. 18 Aug, 2022 2 commits
  2. 08 Aug, 2022 3 commits
  3. 08 Jul, 2022 3 commits
  4. 26 Apr, 2022 1 commit
    • Arsen Arsenović's avatar
      mixer,output: prevent setting volume before outputs are really enabled · 35dbc1a9
      Arsen Arsenović authored
      Previous versions of MPD would call SetVolume on enabled outputs before
      they are ready, causing all of MPD to crash. Checking the really_enabled
      flag prevents this, though it also prevents setting volume before the
      player starts.
      
      Before (with the PipeWire output):
        [i] ~$ mpc clear
        volume: 81%   repeat: off   random: off   single: off   consume: off
        [i] ~$ systemctl --user restart mpd.service
        [i] ~$ mpc volume 100
        MPD error: Connection closed by the server
        [i] ~ 1 $
      
      After:
        [i] ~$ # mpd is freshly started w/o anything in the queue
        [i] ~$ mpc
        volume:100%   repeat: off   random: off   single: off   consume: off
        [i] ~$ mpc volume 80
        MPD error: problems setting volume
        [i] ~ 1 $ mpc
        volume:100%   repeat: off   random: off   single: off   consume: off
        [i] ~$
      35dbc1a9
  5. 26 Mar, 2022 1 commit
    • Vitaly Ostrosablin's avatar
      Make volume changes to apply to disabled software mixers. · ac060889
      Vitaly Ostrosablin authored
      Move audio output state check ahead of mixer check and force volume
      applying even for disabled software mixed outputs.
      
      This fixes incorrect software mixer volume that used to occur when
      volume was changed while output being disabled.
      
      This is easily reproduced with following sequence of commands on
      multi-output software mixed MPD setup.
      
       mpc volume 38; mpc disable 3; mpc volume 88; mpc enable 3
      
      On current MPD, following commands would result in output 3 playing at
      volume 38, while all other enabled outputs would play at volume
      88. Moreover, global volume would display average of outputs real
      volumes. In my case, it's 75.
      
      After applying this patch, following commands would produce expected
      behavior. All outputs play at expected (88) volume. And volume is
      correctly displayed as 88.
      
      Closes https://github.com/MusicPlayerDaemon/MPD/issues/1423
      
      Signed-off-by: Vitaly Ostrosablin tmp6154@yandex.ru
      Signed-off-by: 's avatarVitaly Ostrosablin <tmp6154@yandex.ru>
      ac060889
  6. 03 Dec, 2021 1 commit
  7. 12 Nov, 2021 2 commits
    • Rosen Penev's avatar
      add various nodiscard · 5deca66f
      Rosen Penev authored
      Signed-off-by: 's avatarRosen Penev <rosenp@gmail.com>
      5deca66f
    • Rosen Penev's avatar
      treewide: replace lock_guard with scoped_lock · 4e0e4c00
      Rosen Penev authored
      SonarLint reports the latter to be better:
      
      std::scoped_lock basically provides the same feature as std::lock_guard,
      but is more generic: It can lock several mutexes at the same time, with a
      deadlock prevention mechanism (see {rule:cpp:S5524}). The equivalent code
      to perform simultaneous locking with std::lock_guard is significantly more
      complex. Therefore, it is simpler to use std::scoped_lock all the time,
      even when locking only one mutex (there will be no performance impact).
      Signed-off-by: 's avatarRosen Penev <rosenp@gmail.com>
      4e0e4c00
  8. 04 Nov, 2021 1 commit
  9. 19 Oct, 2021 1 commit
  10. 18 Oct, 2021 1 commit
  11. 13 Oct, 2021 2 commits
  12. 06 Aug, 2021 6 commits
  13. 05 Aug, 2021 1 commit
  14. 25 Jun, 2021 2 commits
  15. 24 Jun, 2021 2 commits
  16. 31 May, 2021 3 commits
  17. 19 May, 2021 1 commit
  18. 08 Mar, 2021 1 commit
  19. 06 Mar, 2021 1 commit
  20. 05 Mar, 2021 5 commits