MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / isAnyPlayerOpen

Method isAnyPlayerOpen

app/src/SerialStudio.cpp:658–669  ·  view source on GitHub ↗

* @brief Checks if any playback players (CSV or MDF4) are currently open. */

Source from the content-addressed store, hash-verified

656 * @brief Checks if any playback players (CSV or MDF4) are currently open.
657 */
658bool SerialStudio::isAnyPlayerOpen()
659{
660 static auto& csvPlayer = CSV::Player::instance();
661 static auto& mdf4Player = MDF4::Player::instance();
662
663#ifdef BUILD_COMMERCIAL
664 static auto& sqlPlayer = Sessions::Player::instance();
665 return csvPlayer.isOpen() || mdf4Player.isOpen() || sqlPlayer.isOpen();
666#else
667 return csvPlayer.isOpen() || mdf4Player.isOpen();
668#endif
669}
670
671/**
672 * @brief Returns true when a player that stores post-transform values is open. The Sessions

Callers

nothing calls this directly

Calls 1

isOpenMethod · 0.45

Tested by

no test coverage detected