Andrzej Rybczak
e43ea18d29
provide a way to sync between visualization and sound
...
workaround for http://musicpd.org/mantis/view.php?id=2503
17 years ago
Andrzej Rybczak
164d32c079
use one global timer instead of several local ones
17 years ago
Andrzej Rybczak
a91d02e181
fix bug that could cause ncmpcpp termination
...
steps to reproduce it:
- go to local browser
- edit tags of the last item using tiny tag editor
- move item to another directory by renaming it
- save tags
tadam! but it's no more.
17 years ago
Andrzej Rybczak
dd866e9337
fix visualizer
17 years ago
Andrzej Rybczak
b947575528
move code responsible for screen resize to SIGWINCH handler
17 years ago
Andrzej Rybczak
9f5e9e60ff
use idle mask to see what changed instead of comparing old and new status
17 years ago
Andrzej Rybczak
dd04406ee5
poll both stdin and mpd using one select()
...
this allows for immediate reading mpd events
17 years ago
Andrzej Rybczak
08f4459b54
make sure that MaxBeginning in Scrollpad::Refresh() is never negative
...
this sometimes triggered segfault in pdcurses
while switching to screens, that use scrollpads.
17 years ago
Andrzej Rybczak
e112e0d975
use select() instead of poll() as it's portable
17 years ago
Andrzej Rybczak
3e99bba5b8
use idle notifications instead of polling mpd all the time
17 years ago
Andrzej Rybczak
eff5ebba4e
fix locating now playing song in browser (using 'o')
...
due to change of keybinding for switching to local browser,
the trigger is invoked in SwitchTo() if main screen is already
pointing to browser. since we use 'o' in browser to locate now
playing song, this function was switching browser to wrong mode
and thus requested song couldn't be found.
17 years ago
Andrzej Rybczak
2af8b1f91b
change descriptions for mpd statistics since they can be misleading
...
mpd doesn't report unique albums, it only counts
different album names. same for artists.
different name for number of songs is just cosmetic.
17 years ago
Andrzej Rybczak
1a3e10dab7
new feature: toggle replay gain mode (requires >=mpd-0.16)
17 years ago
Andrzej Rybczak
75c4c791fd
clear and refresh statusbar immediately after unlock if mpd is stopped
17 years ago
Andrzej Rybczak
62b7df69f3
new feature: refetch lyrics
17 years ago
Andrzej Rybczak
a98eb5e9ac
add range support in NCurses::Menu::Sort()
17 years ago
Andrzej Rybczak
601c8e3ef2
playlist: support for range sort/reverse
17 years ago
Andrzej Rybczak
21dccc83fd
fix compilation --without-taglib
...
caused by 3551057dbb
17 years ago
Andrzej Rybczak
668713c5e7
prepend '0' to track number if it's in format x/xx
...
this fixes sorting and makes track numbers look more consistent.
17 years ago
Andrzej Rybczak
cb9bf30dac
scrollpad: do not reset starting position automatically in Clear()
...
this allows for scrolling mpd server info screen, since the content
is changing slightly every second and starting position was reset
each time it'd been happening, scrolling was impossible. this also
'fixes' the issue in other screens like lyrics, artist info and help
that was reset if main window has been resized, which sometimes could
be very annoying.
17 years ago
Andrzej Rybczak
03f6fd904f
new screen: mpd server info
17 years ago
Andrzej Rybczak
aebc5db0e1
fix segfault that occured if mpd was stopped and window had to be resized
...
we all love null pointer dereferences, don't we?
some methods from Song class need assertion guards to deal with that.
17 years ago
Andrzej Rybczak
3551057dbb
new feature: sort songs in browser by mtime (optional)
17 years ago
Andrzej Rybczak
b48133a743
change keybinding for changing browse mode
...
I shouldn't do that, but the old one will be much better for
choosing whether songs in browser have to be sorted by names
or modification date. Besides, binding this to browser key
makes browser behaviour more "compatible" with media library.
17 years ago
Andrzej Rybczak
3867b131ef
tiny tag editor: fix message about being unable to read the file
17 years ago
Andrzej Rybczak
833f608d60
shorten long names in messages displayed in statusbar
17 years ago
Andrzej Rybczak
89aa68c698
fix typo from f6f7a8a2
17 years ago
Andrzej Rybczak
b979189111
pass to MPD::Connection::AddSong() another parameter - position to add
17 years ago
Andrzej Rybczak
2cbd015ce4
make --now-playing support tabulations and line breakers
17 years ago
Andrzej Rybczak
f6f7a8a27e
move code responsible for replacing content in strings to Replace()
17 years ago
Andrzej Rybczak
63fbdaae1f
ignore width of last column and use all remained space for it
17 years ago
Andrzej Rybczak
8a14d08cd9
fix detection if database has been updated
17 years ago
Andrzej Rybczak
89779e6fb9
sort files in Browser::GetLocalDirectory()
...
files are read in kinda random order, so if one added local dir
to playlist, (s)he would get them not sorted at all. fix that by
sorting files that have been read recently from current dir, so
that we get files sorted within each read directory (if read
recursively), which is nice.
17 years ago
Andrzej Rybczak
eaa7364f79
fix another copypasta bug
...
ugh.
17 years ago
Andrzej Rybczak
8b460d4635
fix MPD::Song::GetTrackNumber()
17 years ago
Andrzej Rybczak
183077d573
fix copy'n'paste bug
17 years ago
Andrzej Rybczak
b0943c28c2
fix adding songs to playlist (broken by d82498ea)
17 years ago
Andrzej Rybczak
c8c5aa079e
fix appending now playing song prefix/suffix if playlist is filtered
17 years ago
Andrzej Rybczak
6f7b77c84e
editing lyrics shouldn't require mpd_music_dir variable to be set
17 years ago
Andrzej Rybczak
d82498ea16
throw away isConnected variable and use itsConnection instead
17 years ago
Andrzej Rybczak
f61b4716a2
add support for multiple tags
17 years ago
Andrzej Rybczak
663aba02d2
allow for empty strings in MPD::Song::SetTag()
...
if they weren't allowed, clearing tag value in tag editor would be impossible.
17 years ago
Andrzej Rybczak
409d60ed18
Merge branch 'libmpdclient2'
...
Conflicts:
src/browser.cpp
src/ncmpcpp.cpp
17 years ago
Andrzej Rybczak
008ba5fca8
change version to 0.4.2_pre
17 years ago
Andrzej Rybczak
b0212a3779
fix MPD::Connection::GetDirectories()
...
they should return only dirs from main dir, not from all subdirs
17 years ago
Andrzej Rybczak
de6db568c1
fix broken compilation due to lack of setters for mpd_song
17 years ago
Andrzej Rybczak
c031675f56
update NEWS / version bump
17 years ago
Andrzej Rybczak
00fde3c266
add to example config info about how to check state of charset detection
17 years ago
Andrzej Rybczak
b2aeb9f609
make --version|-v display info about encoding detection
17 years ago
Andrzej Rybczak
fcf3acb6dd
convert tags to wide strings in TagEditor::GetTagList()
...
This fixes writing tags that contain non-ascii
characters if non-unicode locale is used.
17 years ago