MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / setTrack

Method setTrack

framework/sound/sdlraw_backend.cpp:345–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

343 }
344
345 void setTrack(sp<MusicTrack> track) override
346 {
347 std::lock_guard<std::recursive_mutex> l(this->audio_lock);
348 LogInfo("Setting track to %s", track->path);
349 this->track = track;
350 while (!music_queue.empty())
351 music_queue.pop();
352 }
353
354 void stopMusic() override
355 {

Callers 2

beginMethod · 0.45
progressTrackMethod · 0.45

Calls 2

emptyMethod · 0.80
popMethod · 0.80

Tested by

no test coverage detected