1 parent
01362d2e51
commit
39aff68d8d
29 files changed
+2061
-1818
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user