mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:18:12 +00:00

When the visualization is set to "Album Cover", the player will now try to load the embedded image. On failure, it defaults to a "Cover" image file in the directory. In Player::play_file_path, file_name_changed now needs to be executed after that the loader have been set, to get the correct image.
22 lines
536 B
CMake
22 lines
536 B
CMake
serenity_component(
|
|
SoundPlayer
|
|
RECOMMENDED
|
|
TARGETS SoundPlayer
|
|
DEPENDS AudioServer
|
|
)
|
|
|
|
set(SOURCES
|
|
AlbumCoverVisualizationWidget.cpp
|
|
BarsVisualizationWidget.cpp
|
|
M3UParser.cpp
|
|
PlaybackManager.cpp
|
|
Player.cpp
|
|
Playlist.cpp
|
|
PlaylistWidget.cpp
|
|
SampleWidget.cpp
|
|
SoundPlayerWidgetAdvancedView.cpp
|
|
main.cpp
|
|
)
|
|
|
|
serenity_app(SoundPlayer ICON app-sound-player)
|
|
target_link_libraries(SoundPlayer PRIVATE LibAudio LibCore LibDSP LibGfx LibGUI LibIPC LibMain LibThreading LibImageDecoderClient)
|