diff --git a/LICENSE.md b/LICENSE.md index fb06108..5fae811 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -48,6 +48,7 @@ - gasp.ogg: Gasping for air - gasprelief.ogg: Heavy breathing - growl.ogg: Growled into a Xaphoon (2024-09-13@18:21), lowered by an octave, added reverb + - phone.ogg: 2 sine waves (440Hz+480Hz) at 0.2 amplitude, -3dB amplification, with some fade in and fade out - refill.ogg: This consists of 3 overlaid parts: - Starting clang: Hit a fire extinguisher with a chunk of metal - Main hiss: Sprayed a can of WD-40, applied high pass filter (1khz, 36db roll-off per octave), fade out diff --git a/assets/sounds/phone.ogg b/assets/sounds/phone.ogg new file mode 100644 index 0000000..7469996 Binary files /dev/null and b/assets/sounds/phone.ogg differ diff --git a/src/audio.rs b/src/audio.rs index 8ee04f5..3b26ff5 100644 --- a/src/audio.rs +++ b/src/audio.rs @@ -78,6 +78,7 @@ const PATHS: &[(SfxType, Sfx, &str)] = &[ "sounds/connect.ogg", ), (SfxType::OneOff, Sfx::Ping, "sounds/connect.ogg"), + (SfxType::OneOff, Sfx::Phone, "sounds/phone.ogg"), (SfxType::OneOff, Sfx::PowerDown, "sounds/powerdown.ogg"), (SfxType::OneOff, Sfx::PowerUp, "sounds/spark.ogg"), (SfxType::OneOff, Sfx::Switch, "sounds/click2.ogg"), @@ -107,6 +108,7 @@ pub enum Sfx { IncomingChatMessage, Ion, Ping, + Phone, PowerDown, PowerUp, Refill, @@ -132,6 +134,7 @@ pub fn str2sfx(sfx_label: &str) -> Sfx { "cat" => Sfx::Cat, "chat" => Sfx::IncomingChatMessage, "ping" => Sfx::Ping, + "phone" => Sfx::Phone, "powerdown" => Sfx::PowerDown, "powerup" => Sfx::PowerUp, "connect" => Sfx::Connect, diff --git a/src/chats/phone.yaml b/src/chats/phone.yaml index fef3f41..d12fda2 100644 --- a/src/chats/phone.yaml +++ b/src/chats/phone.yaml @@ -15,9 +15,13 @@ - Select contact to call. - if: phone$travel FASTravel: + - sound: phone + msg: Dialing... - goto: travel - if: phone$luna Luna: + - sound: phone + msg: Dialing... - goto: luna - "[Cancel]": - goto: EXIT