std-game-audio
Level: Atom | Entity: GameAudio | Persistence: runtime
1 states, 2 events, 2 transitions
Live Preview
schema.orb
{
"name": "GameAudioOrbital",
"orbitals": [
{
"name": "GameAudioOrbital",
"entity": {
"name": "GameAudio",
"persistence": "runtime",
"fields": [
{
"name": "id",
"type": "string"
},
{
"name": "name",
"type": "string"
},
{
"name": "description",
"type": "string"
},
{
"name": "status",
"type": "string",
"default": "active",
"values": [
"active",
"inactive",
"pending"
]
},
{
"name": "createdAt",
"type": "string"
}
]
},
"traits": [
{
"name": "GameAudioGameAudio",
"linkedEntity": "GameAudio",
"category": "interaction",
"stateMachine": {
"states": [
{
"name": "idle",
"isInitial": true
}
],
"events": [
{
"key": "INIT",
"name": "Initialize"
},
{
"key": "TOGGLE_MUTE",
"name": "Toggle Mute"
}
],
"transitions": [
{
"from": "idle",
"to": "idle",
"event": "INIT",
"effects": [
[
"fetch",
"GameAudio"
],
[
"render-ui",
"main",
{
"type": "game-audio-provider",
"manifest": {},
"baseUrl": "",
"initialMuted": false,
"children": []
}
]
]
},
{
"from": "idle",
"to": "idle",
"event": "TOGGLE_MUTE",
"effects": [
[
"render-ui",
"main",
{
"type": "game-audio-provider",
"manifest": {},
"baseUrl": "",
"initialMuted": false,
"children": []
}
]
]
}
]
}
}
],
"pages": [
{
"name": "GameAudioAudioPage",
"path": "/gameaudios",
"traits": [
{
"ref": "GameAudioGameAudio"
}
]
}
]
}
],
"description": "Game audio provider atom using the `game-audio-provider` pattern. Wraps child content with an audio context, providing sound playback and mute toggling."
}
Loading preview...
Orbital Visualization
Loading visualization...
Entity Fields
| Field | Type | Default |
|---|---|---|
| id | string | - |
| name | string | - |
| description | string | - |
| status | string | "active" |
| createdAt | string | - |
States
| State | Type |
|---|---|
| idle | Initial |
Events
| Event | Payload |
|---|---|
| INIT | - |
| TOGGLE_MUTE | - |
Transitions
| From | Event | To | Effects |
|---|---|---|---|
| idle | INIT | idle | 2 effects |
| idle | TOGGLE_MUTE | idle | 1 effect |