2026-04-14 17:41:39 +02:00

58 lines
1.7 KiB
Markdown

# Music App Configuration
This page explains all configuration options for the Music app in codem-phone.
---
## Music Settings
```lua
Music = {
MusicDistance = 15,
NearbyVolumeUpdateInterval = 0,
TimeUpdateInterval = 200,
TimeDriftThreshold = 2,
ServerUpdateInterval = 1000,
}
```
| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `MusicDistance` | number | `15` | Maximum distance where music can be heard (in meters) |
| `NearbyVolumeUpdateInterval` | number | `0` | Interval for updating volume and distance calculations (in ms) |
| `TimeUpdateInterval` | number | `200` | Interval for updating player position tracking (in ms) |
| `TimeDriftThreshold` | number | `2` | Maximum allowed time difference before re-sync (in seconds) |
| `ServerUpdateInterval` | number | `1000` | Server-side music time update interval (in ms) |
---
## Notification Settings
```lua
Notification = {
NotificationDistance = 10,
BroadcastDistance = 15,
}
```
| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `NotificationDistance` | number | `10` | Distance for notification sounds (in meters) |
| `BroadcastDistance` | number | `15` | Distance for broadcast notifications (in meters) |
---
## Camera Shutter Sound
```lua
CameraShutter = {
SoundUrl = 'https://aiakos.net/codem/api.php?script=codem-phone&file=camera-shutter-314056.mp3',
}
```
| Parameter | Type | Description |
|-----------|------|-------------|
| `SoundUrl` | string | URL for camera shutter sound effect |
You can replace this URL with your own custom sound file.