Commit Graph

201 Commits

Author SHA1 Message Date
Andrzej Rybczak
70945596ef window: use readline for handling line input 2013-12-25 23:31:27 +01:00
Andrzej Rybczak
2f9ab8f267 mpdpp: make all consumers take values, not rvalue references 2013-05-17 15:18:17 +02:00
Andrzej Rybczak
7a470cdfbf fix assertion failure while trying to send play command in commands list
this fixes #3746
2013-04-27 19:13:44 +02:00
Andrzej Rybczak
54a1822db2 fix problem with status update (#3740) 2013-04-10 16:17:10 +02:00
Andrzej Rybczak
5aec12b269 status: update header immediately after player state change 2013-04-07 18:25:02 +02:00
Andrzej Rybczak
2184fb7c73 get rid of global mpd status object 2013-04-07 17:29:32 +02:00
Andrzej Rybczak
1d4e006986 update copyright info 2013-04-07 13:31:58 +02:00
Andrzej Rybczak
6a3eb73a49 rewrite communication system with mpd 2013-04-07 13:22:50 +02:00
Raghavendra D Prabhu
bbef713741 status: reduce wakeups with display_bitrate enabled
When system was profiled for wakeups, a high wakeup rate from mpd was observed even when paused. Strace-ing mpd pointed at excessive polling even though mpd_communication_mode is set to notifications. By method of elimination in the configuration, it was narrowed down to display_bitrate. By code inspection, it could be seen that Mpd.isPlaying() is true even if mpd is paused, but it doesn't make sense as to why bitrate needs to be constantly updated even when mpd is paused. Hence the patch.

Signed-off-by: Raghavendra D Prabhu <rprabhu@wnohang.net>
2013-04-06 10:52:22 +02:00
Andrzej Rybczak
8db773cfec replace a few string algorithms with boost utilities 2012-10-18 16:59:57 +02:00
Andrzej Rybczak
df9ecabb55 window: make color/format/border class enums 2012-10-06 19:05:12 +02:00
Andrzej Rybczak
439e004cfa restore BasicBuffer::write function 2012-10-06 17:02:36 +02:00
Andrzej Rybczak
e40edade0e use boost.locale for charset conversions instead of iconv 2012-10-05 20:49:58 +02:00
Andrzej Rybczak
6e33c2ef0f media library: preserve filters/selections on update 2012-10-03 19:58:48 +02:00
Andrzej Rybczak
9a292ca20d mpd: make functions take item consumer instead of returning vector of items 2012-10-01 20:44:22 +02:00
Andrzej Rybczak
b57428db90 mdp: remove GetCurrentlyPlayingSongPos 2012-09-18 21:34:14 +02:00
Andrzej Rybczak
4ff78d6304 fix handling playlist highlight 2012-09-18 18:27:17 +02:00
Andrzej Rybczak
88a279119e status: fix blinking cursor when playlist_highlight_delay is set to 1 2012-09-16 17:12:14 +02:00
Andrzej Rybczak
48cf01f084 pass ProxySongList around since it already has shared_ptr inside 2012-09-16 07:14:33 +02:00
Andrzej Rybczak
f691ab265f screen: rename BasicScreen to BaseScreen 2012-09-16 03:08:02 +02:00
Andrzej Rybczak
14587cb4ec abstract shared parts of switchTo methods away 2012-09-15 22:58:32 +02:00
Andrzej Rybczak
f7dba0a578 make remaining single-windowed screens' main windows non-pointer 2012-09-15 00:43:53 +02:00
Andrzej Rybczak
0d27d6ded3 media library: make screens non-pointer 2012-09-14 17:33:53 +02:00
Andrzej Rybczak
d05707ad82 browser: make main type non-pointer 2012-09-14 16:20:54 +02:00
Andrzej Rybczak
9c29082afe playlist: define main screen as non-pointer 2012-09-14 16:16:35 +02:00
Andrzej Rybczak
1891c1c050 do not initialize screens lazily as it doesn't make much sense 2012-09-14 00:54:48 +02:00
Andrzej Rybczak
9ddfca8f31 playlist: move sorting dialog related functions to separate file 2012-09-13 21:57:17 +02:00
Andrzej Rybczak
dd7665bb7d more PascalCase to camelCase conversions 2012-09-13 19:23:33 +02:00
Andrzej Rybczak
d55070754d settings: support customizable tags separator 2012-09-12 21:44:27 +02:00
Andrzej Rybczak
8e7bcd219b display: improve showSongs a bit 2012-09-12 19:36:16 +02:00
Andrzej Rybczak
8f065e2da3 status: split NcmpcppStatusChanged into smaller pieces 2012-09-12 02:41:21 +02:00
Andrzej Rybczak
a9bee35cca charset: put functions into namespace and change naming convention 2012-09-11 22:57:56 +02:00
Andrzej Rybczak
63413368c8 remove remaining exclamation marks from messages 2012-09-11 21:53:35 +02:00
Andrzej Rybczak
c90545b008 move statusbar/progressbar related code to separate file 2012-09-11 21:52:41 +02:00
Andrzej Rybczak
6ab2714e2f status: improve dealing with now playing song 2012-09-11 20:41:57 +02:00
Andrzej Rybczak
a98df99ba6 playist: do not duplicate now playing information 2012-09-11 20:22:22 +02:00
Andrzej Rybczak
37b7650d71 status: change window title from "ncmpcpp ver. X" to "ncmpcpp X" 2012-09-09 19:52:20 +02:00
Andrzej Rybczak
84326efc46 move wstring related functions to wide_char file 2012-09-08 18:42:59 +02:00
Andrzej Rybczak
d5e2d315fd use wstrings uncoditionally where needed 2012-09-08 17:50:01 +02:00
Andrzej Rybczak
45a097a45b reduce number of calls to gettimeofday 2012-09-07 23:11:40 +02:00
Andrzej Rybczak
c935dcf11a global: remove RedrawHeader 2012-09-06 16:49:47 +02:00
Andrzej Rybczak
21947d3655 status: optimize filtering when chars are being taken from input queue 2012-09-05 22:45:13 +02:00
Andrzej Rybczak
69bd1bac97 tag editor: remove albums view 2012-09-05 00:51:23 +02:00
Andrzej Rybczak
bf3a7a7715 do not clear playlists content, make idle notifications take care of it 2012-09-04 22:57:58 +02:00
Andrzej Rybczak
09e746aa05 status: fix copypaste bug 2012-09-04 20:13:33 +02:00
Andrzej Rybczak
6d87ebbc43 generalize UpdateSongsList (-> markSongsInPlaylist) 2012-09-04 18:50:33 +02:00
Andrzej Rybczak
bb121fbe01 make playlist and playlist editor share code responsible for moving items 2012-09-04 18:14:37 +02:00
Andrzej Rybczak
60ca9de919 check if song is in playlist in O(nlogn) instead of O(n^2) 2012-09-04 03:17:12 +02:00
Andrzej Rybczak
ce80c21ea5 status: restore commented out piece of code 2012-09-03 16:17:03 +02:00
Andrzej Rybczak
226fbdd2c9 fix shadowing warnings 2012-09-03 15:43:59 +02:00