Model
SoundModel
- class SoundModel(event_bus: EventBus)[source]
Bases:
objectNetwork listener and data dispatcher for the audio engine.
This class operates as the primary data gateway. It listens for incoming UDP packets containing simulation state data (in JSON format), decodes them, and identifies changes between consecutive data frames. Significant changes are then published to the
EventBusto notify registered adapters.- sock
The UDP socket used for receiving simulation data.
- Type:
- client_data
A local cache of the most recent data frame received from the simulation client.
- Type: