-
Notifications
You must be signed in to change notification settings - Fork 20
ExtensionSound
Arthur edited this page Jul 22, 2026
·
2 revisions
Extension: gama.extension.sound
The Sound extension provides a collection of statements that are associated with sound effects.
Starts a sound effect.
| Facet | Type | Description |
|---|---|---|
filename |
string |
Audio file (wav, mp3, ...). This path is relative to the path of the model (no facet name required) |
volume |
float |
Volume (0-1) |
repeat |
bool |
Should the sound be repeated or not? (default: false) |
mode |
identifier |
Mode: overwrite or ignore (default: overwrite) |
Example:
global {
start_sound "mysound.wav";
}
Plays a music file.
| Facet | Type | Description |
|---|---|---|
filename |
string |
Audio file (wav, mp3, ...) (no facet name required) |
volume |
float |
Volume (0-1) |
repeat |
bool |
Should the sound be repeated or not? (default: false) |
mode |
identifier |
Mode: overwrite or ignore (default: overwrite) |
Example:
global {
start_sound_music "mymusic.mp3" repeat:true;
}
Stops a sound effect.
| Facet | Type | Description |
|---|---|---|
filename |
string |
Name of the sound file to be stopped (no facet name required) |
Stops a music file.
No facets required.
Pauses a sound effect.
| Facet | Type | Description |
|---|---|---|
filename |
string |
Name of the sound file to be paused (no facet name required) |
Pauses a music file.
No facets required.
Resumes a paused sound effect.
| Facet | Type | Description |
|---|---|---|
filename |
string |
Name of the sound file to be resumed (no facet name required) |
Resumes a paused music file.
No facets required.
The extension provides a species that agents can be defined as if agents need to play sound effects.
Example:
species SoundEffect type: sound_player skills: [fipa] {
...
}
The extension provides a species that agents can be defined as if agents need to play musics.
Example:
species SoundMusic type: music_player {
...
}
- Installation and Launching
- Workspace, Projects and Models
- Editing Models
- Running Experiments
- Running Headless
- Preferences
- Troubleshooting
- Introduction
- Manipulate basic Species
- Global Species
- Defining Advanced Species
- Defining GUI Experiment
- Classes and Objects
- Exploring Models
- Optimizing Models
- Multi-Paradigm Modeling
- Manipulate OSM Data
- Cleaning OSM Data
- Diffusion
- Using Database
- Using Dataframes
- Using FIPA ACL
- Using BDI with BEN
- Using Driving Skill
- Manipulate dates
- Manipulate lights
- Using comodel
- Save and restore Simulations
- Using network
- Writing Unit Tests
- Ensure model's reproducibility
- Going further with extensions
- Built-in Species
- Built-in Skills
- Built-in Architecture
- Statements
- Data Type
- File Type
- Stats Extension
- Sound Extension
- BDI Extension
- FIPA Skill
- Expressions
- Exhaustive list of GAMA Keywords
- Installing the development version
- Developing Extensions
- Introduction to GAMA Java API
- Using GAMA flags
- Creating a release of GAMA
- Documentation generation
- Predator Prey
- Road Traffic
- Incremental Model
- Luneray's flu
- BDI Agents
- Forager RL
- SIR Analysis
- 3D Model