A source's playing information. Useful for keeping track of when to start/stop playing a source. More...
#include <LogicalAudio.hh>
Public Member Functions | |
SourcePlayInfo () | |
Constructor. | |
bool | operator!= (const SourcePlayInfo &_sourcePlayInfo) const |
bool | operator== (const SourcePlayInfo &_sourcePlayInfo) const |
Public Attributes | |
std::chrono::seconds | playDuration |
How long the source should play for, in seconds. Setting this to 0 means the source has a play duration of infinity. | |
bool | playing {false} |
Whether the source is currently playing or not. | |
std::chrono::steady_clock::duration | startTime |
The time at which the source most recently started playing. | |
Detailed Description
A source's playing information. Useful for keeping track of when to start/stop playing a source.
Constructor & Destructor Documentation
◆ SourcePlayInfo()
|
inline |
Constructor.
Member Function Documentation
◆ operator!=()
|
inline |
◆ operator==()
|
inline |
References SourcePlayInfo::playDuration, SourcePlayInfo::playing, and SourcePlayInfo::startTime.
Member Data Documentation
◆ playDuration
std::chrono::seconds playDuration |
How long the source should play for, in seconds. Setting this to 0 means the source has a play duration of infinity.
Referenced by LogicalAudioSourcePlayInfoSerializer::Deserialize(), SourcePlayInfo::operator==(), and LogicalAudioSourcePlayInfoSerializer::Serialize().
◆ playing
bool playing {false} |
Whether the source is currently playing or not.
Referenced by LogicalAudioSourcePlayInfoSerializer::Deserialize(), SourcePlayInfo::operator==(), and LogicalAudioSourcePlayInfoSerializer::Serialize().
◆ startTime
std::chrono::steady_clock::duration startTime |
The time at which the source most recently started playing.
Referenced by LogicalAudioSourcePlayInfoSerializer::Deserialize(), SourcePlayInfo::operator==(), and LogicalAudioSourcePlayInfoSerializer::Serialize().
The documentation for this struct was generated from the following file: