Signed-off-by: faumaray <faumaray@gmail.com>
This commit is contained in:
faumaray committed 2026-07-15 19:49:57 +03:00
1 parent 01362d2e51
commit 39aff68d8d
29 files changed
+2061 -1818

No files matched your search

+8 -1
View File
@@ -60,7 +60,9 @@ namespace Echoion::Core
networkConfig.proxy->port));
}
youTubeClient_ = std::make_shared<YouTubeClient>(networkClient_);
if (!youTubeClient_) {
youTubeClient_ = std::make_shared<YouTubeClient>(networkClient_);
}
// Playlist loading runs off the audio path: it enqueues resolved
// tracks via queueTrack and pokes the playback loop on the first one.
@@ -459,6 +461,11 @@ namespace Echoion::Core
Void::Log::info("MusicManager", "{}", "Sources config applied");
}
void MusicManager::addTrackSource(std::shared_ptr<ITrackSource> source)
{
if (router_) router_->addSource(std::move(source));
}
void MusicManager::shutdown()
{
// Background fetch threads touch queue_/engine_/sources; join them