| 110 | } |
| 111 | |
| 112 | Json Voice::Speaker::toJson() const { |
| 113 | return JsonObject{ |
| 114 | {"speakerId", speakerId}, |
| 115 | {"entityId", entityId }, |
| 116 | {"name", name }, |
| 117 | {"playing", (bool)playing}, |
| 118 | {"muted", (bool)muted }, |
| 119 | {"decibels", (float)decibelLevel}, |
| 120 | {"smoothDecibels", (float)smoothDb }, |
| 121 | {"position", jsonFromVec2F(position)} |
| 122 | }; |
| 123 | } |
| 124 | |
| 125 | Voice* Voice::s_singleton; |
| 126 |
no test coverage detected