diff options
Diffstat (limited to 'apps/fparkan-game/src/audio.rs')
| -rw-r--r-- | apps/fparkan-game/src/audio.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/fparkan-game/src/audio.rs b/apps/fparkan-game/src/audio.rs index e4580707..90ddd6d7 100644 --- a/apps/fparkan-game/src/audio.rs +++ b/apps/fparkan-game/src/audio.rs @@ -21,6 +21,8 @@ use std::io::Cursor; use std::sync::{Arc, Mutex}; use std::time::{SystemTime, UNIX_EPOCH}; +mod capture_voice; + const SWAV_TYPE: u32 = u32::from_le_bytes(*b"SWAV"); const DEFAULT_MUSIC_TRACK: u8 = 2; const FIRST_MUSIC_TRACK: u8 = 2; @@ -636,6 +638,7 @@ pub(crate) struct GameAudio { music: Player, variations: Player, mission_voice: Player, + vehicle_capture_voice: capture_voice::VehicleCaptureVoice, mission_cfg: NormalizedPath, weather_loop: NativeSpatialPlayer, control_sounds: BTreeMap<ControlSoundId, NativeSpatialPlayer>, @@ -683,6 +686,7 @@ impl GameAudio { music, variations, mission_voice, + vehicle_capture_voice: capture_voice::VehicleCaptureVoice::new(random_seed()), mission_cfg, weather_loop, control_sounds: BTreeMap::new(), |
