Class Orpheus.Builder
java.lang.Object
lol.trq.orpheus.Orpheus.Builder
- Enclosing class:
Orpheus
-
Method Summary
Modifier and TypeMethodDescriptionSets which applications of operating system sources are visible.build()commandTimeout(Duration timeout) How long a command may stay unanswered before it fails.coverCacheBytes(long bytes) The memory limit of the decoded cover cache.coverSize(int pixels) The longest side of decoded covers in pixels.Receives diagnostic lines, which may contain track titles.Runs listeners on this executor instead of a library thread.lyrics(LyricsProvider provider) Adds a lyrics provider.Marks the data of a source as shareable with other people.Adds a source.
-
Method Details
-
source
Adds a source. Order is priority: an earlier source is chosen over a later one in the same play state, and wins when two describe the same song. -
lyrics
Adds a lyrics provider. Providers are asked in order until one gives a confident match. -
apps
Sets which applications of operating system sources are visible. Default:AppRules.defaults(). -
executor
Runs listeners on this executor instead of a library thread. -
debug
Receives diagnostic lines, which may contain track titles. None are produced without this. -
coverSize
The longest side of decoded covers in pixels. Default 512. -
coverCacheBytes
The memory limit of the decoded cover cache. Default 32 MiB. -
commandTimeout
How long a command may stay unanswered before it fails. Default 5 seconds. -
build
-