Skip to content

Deserialization/Unmarshalling for Generated SoundBank Data #65

@matheusvilano

Description

@matheusvilano

The topic/event ak.wwise.core.soundbank.generated currently broadcasts a SoundBankGenerationInfo (a dataclass), but this data type is not yet feature-complete. Currently, these fields are generic JSON-like dictionaries:

    media: dict
    """JSON object containing information about Media."""
    
    external_sources: dict
    """JSON object containing information about External Sources."""
    
    plugins: dict
    """JSON object containing information about Plugins."""
    
    events: dict
    """JSON object containing information about Events."""
    
    dialogue_events: dict
    """JSON object containing information about Dialogue Events."""
    
    audio_busses: dict
    """JSON object containing information about Audio Busses."""
    
    aux_busses: dict
    """JSON object containing information about Aux Busses."""
    
    game_parameters: dict
    """JSON object containing information about Game Parameters."""
    
    triggers: dict
    """JSON object containing information about Triggers."""
    
    state_groups: dict
    """JSON object containing information about State Groups."""
    
    switch_groups: dict
    """JSON object containing information about Switch Groups."""
    
    acoustic_textures: dict
    """JSON object containing information about Acoustic Textures."""

It would be much better to replace those with a more object-oriented architecture.

TODOs:
[ ] Create whatever new dataclasses are needed for this implementation.
[ ] Update SoundBankGenerationInfo so it doesn't rely on generic dictionaries.
[ ] Update the implementation of ak.wwise.core.soundbank._on_generated so it deserializes/demarshalls the data correctly (before initialising the SoundBankGenerationInfo object being passed to the event.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions