# cynoctisdev/soda-audiomanager architecture

> Architecture diagram of the GitHub repository cynoctisdev/soda-audiomanager, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/cynoctisdev/soda-audiomanager
- Repository: https://github.com/cynoctisdev/soda-audiomanager

## Overview

Soda AudioManager is a Godot plugin for non-spatial music, UI sounds, and general sound effects. A game script calls its global API to play, pause, stop, sequence, or randomly select sounds and adjust volume; returned sound instances support pitch changes and completion callbacks. The README documents these capabilities but no source excerpts were provided, so internal call paths and the roles of some listed modules cannot be verified; the graph shows only documented relationships.

Main entry points: [`addons/SodaAudioManager/Scripts/audio_manager.gd`](https://github.com/cynoctisdev/soda-audiomanager/blob/main/addons/SodaAudioManager/Scripts/audio_manager.gd) (Audio manager), [`addons/SodaAudioManager/CustomClass/soda_sfx_node.gd`](https://github.com/cynoctisdev/soda-audiomanager/blob/main/addons/SodaAudioManager/CustomClass/soda_sfx_node.gd) (SFX instance)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_playback["Playback API"]
  node_audio_manager["Audio manager<br/>[audio_manager.gd]"]
  node_effects_manager["Effects manager<br/>[effects_manager.gd]"]
  node_audio_definition["Audio definition<br/>[soda_audio_def.gd]"]
end

subgraph group_sound_instance["Sound instances"]
  node_sfx_instance["SFX instance<br/>[soda_sfx_node.gd]"]
end

node_game_script(("Game script"))

node_game_script -->|"calls playback API"| node_audio_manager
node_audio_manager -->|"returns SFX instance"| node_sfx_instance
node_game_script -->|"chains sound controls"| node_sfx_instance

click node_audio_manager "https://github.com/cynoctisdev/soda-audiomanager/blob/main/addons/SodaAudioManager/Scripts/audio_manager.gd"
click node_effects_manager "https://github.com/cynoctisdev/soda-audiomanager/blob/main/addons/SodaAudioManager/Scripts/effects_manager.gd"
click node_audio_definition "https://github.com/cynoctisdev/soda-audiomanager/blob/main/addons/SodaAudioManager/soda_audio_def.gd"
click node_sfx_instance "https://github.com/cynoctisdev/soda-audiomanager/blob/main/addons/SodaAudioManager/CustomClass/soda_sfx_node.gd"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_audio_manager,node_effects_manager,node_audio_definition toneBlue
class node_sfx_instance toneAmber
class node_game_script toneIndigo
```

## Components

### Playback API

- [Audio manager](https://github.com/cynoctisdev/soda-audiomanager/blob/main/addons/SodaAudioManager/Scripts/audio_manager.gd): `addons/SodaAudioManager/Scripts/audio_manager.gd`
- [Effects manager](https://github.com/cynoctisdev/soda-audiomanager/blob/main/addons/SodaAudioManager/Scripts/effects_manager.gd): `addons/SodaAudioManager/Scripts/effects_manager.gd`
- [Audio definition](https://github.com/cynoctisdev/soda-audiomanager/blob/main/addons/SodaAudioManager/soda_audio_def.gd): `addons/SodaAudioManager/soda_audio_def.gd`

### Sound instances

- [SFX instance](https://github.com/cynoctisdev/soda-audiomanager/blob/main/addons/SodaAudioManager/CustomClass/soda_sfx_node.gd): `addons/SodaAudioManager/CustomClass/soda_sfx_node.gd`

### Other components

- **Game script**

## Connections

- Game script → Audio manager: calls playback API (evidence: `README.md`)
- Audio manager → SFX instance: returns SFX instance (evidence: `README.md`)
- Game script → SFX instance: chains sound controls (evidence: `README.md`)
