Class LocalLyrics
java.lang.Object
lol.trq.orpheus.lyrics.LocalLyrics
- All Implemented Interfaces:
AutoCloseable, LyricsProvider
Lyrics from the user's own files:
.lrc files and lyrics embedded in MP3, FLAC and MP4 audio files under
the given folders. Nothing leaves the machine.
An .lrc file is matched by its ti/ar/length tags, by the tags of an audio file
with the same name next to it, or by a file name of the form Artist - Title.lrc. Folders are indexed once
on a background thread, started by the first lookup; links are not followed. Close it to stop that thread.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static LocalLyricsvoidRegisters a callback the provider runs when it may have new answers, so a failed lookup can be retried.
-
Method Details
-
in
-
onChange
Description copied from interface:LyricsProviderRegisters a callback the provider runs when it may have new answers, so a failed lookup can be retried.- Specified by:
onChangein interfaceLyricsProvider
-
find
- Specified by:
findin interfaceLyricsProvider- Returns:
- the best match, or null when there is none
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-