* @brief Returns the CSV playback progress in the range 0.0 to 1.0. */
| 85 | * @brief Returns the CSV playback progress in the range 0.0 to 1.0. |
| 86 | */ |
| 87 | double CSV::Player::progress() const |
| 88 | { |
| 89 | const auto count = frameCount(); |
| 90 | if (count <= 0) |
| 91 | return 0.0; |
| 92 | |
| 93 | return static_cast<double>(framePosition()) / count; |
| 94 | } |
| 95 | |
| 96 | /** |
| 97 | * @brief Returns whether playback is currently active. |
no outgoing calls
no test coverage detected