17 #ifndef GZ_SIM_COMPONENTS_LOGICALAUDIO_HH_
18 #define GZ_SIM_COMPONENTS_LOGICALAUDIO_HH_
28 #include <gz/sim/config.hh>
35 inline namespace GZ_SIM_VERSION_NAMESPACE {
36 namespace logical_audio
75 return this->
id == _source.
id;
80 return !(*
this == _source);
105 return (this->playing == _sourcePlayInfo.
playing) &&
107 (this->startTime == _sourcePlayInfo.
startTime);
112 return !(*
this == _sourcePlayInfo);
130 return this->
id == _microphone.
id;
135 return !(*
this == _microphone);
140 namespace serializers
146 auto temp =
static_cast<unsigned int>(_func);
155 unsigned int temp = 0u;
165 auto temp =
static_cast<unsigned int>(_shape);
174 unsigned int temp = 0u;
182 const std::chrono::steady_clock::duration &_dur)
184 _out << std::chrono::duration_cast<std::chrono::nanoseconds>(
191 std::chrono::steady_clock::duration &_dur)
293 class LogicalAudioSourceTag,
294 serializers::LogicalAudioSourceSerializer>;
304 class LogicalAudioSourcePlayInfoTag,
305 serializers::LogicalAudioSourcePlayInfoSerializer>;
307 "gz_sim_components.LogicalAudioSourcePlayInfo",
308 LogicalAudioSourcePlayInfo)
316 class LogicalMicrophoneTag,
317 serializers::LogicalMicrophoneSerializer>;