MCPcopy Create free account
hub / github.com/AbyssEngine/AbyssEngineOld / setBackgroundMusic

Method setBackgroundMusic

src/Abyss/AbyssEngine.cpp:336–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

334Common::Configuration &AbyssEngine::getConfiguration() { return _configuration; }
335
336void AbyssEngine::setBackgroundMusic(const std::string_view path) {
337 _backgroundMusic = std::make_unique<Streams::AudioStream>(loadFile(path));
338 _backgroundMusic->setLoop(true);
339 _backgroundMusic->play();
340}
341
342void AbyssEngine::addCursorImage(const std::string_view name, const std::string_view path, const DataTypes::Palette &palette) {
343 _cursors.emplace(std::string(name), new DataTypes::DC6(path));

Callers 1

playMainThemeMusicMethod · 0.80

Calls 2

setLoopMethod · 0.45
playMethod · 0.45

Tested by

no test coverage detected