phone.ogg: add sound to phone calls

This commit is contained in:
yuni 2024-10-27 02:40:45 +01:00
parent 52709dad4c
commit 0cc9c9427f
4 changed files with 8 additions and 0 deletions

View file

@ -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

BIN
assets/sounds/phone.ogg Normal file

Binary file not shown.

View file

@ -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,

View file

@ -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