Compare commits

..

No commits in common. "cb2ff574ed142217da3f25828ba2ceecf4d2bc5c" and "5c477286f508302c7e0ecb7656cf504e394d7c1a" have entirely different histories.

4 changed files with 15 additions and 4 deletions

View file

@ -44,6 +44,7 @@
- JupiterRecording.ogg is an [actual Jupiter recording by NASA](https://archive.org/download/voyager-1-and-2-1990-jupiter-nasa-voyager-space-sounds-electronic), public domain.
- Processed by cutting out min 1:47-3:47 and applying a 10s linear crossfade at the end. Exported as ogg with quality=3, see [.kdenlive file](src/audio/JupiterRecording.kdenlive).
- The source file has been taken down, and generally, I can't find information on how exactly this was produced. Hoping it's not a hoax.
- [Cinematic Cello](https://pixabay.com/music/build-up-scenes-cinematic-cello-115667) by [Aleksey Chistilin](https://pixabay.com/users/lexin_music-28841948/), [Pixabay Content License](https://pixabay.com/service/license-summary)
- Star chart based on the [HYG Stellar database](https://github.com/astronexus/HYG-Database)
- Font Yupiter-Regular.ttf is placed under the SIL OPEN FONT LICENSE Version 1.1 and is based on:
- Noto Sans Symbols 2, Copyright 2022 The Noto Project Authors (https://github.com/notofonts/symbols)

Binary file not shown.

View file

@ -47,6 +47,11 @@ impl Plugin for AudioPlugin {
pub struct ZoomTimer(Timer);
const PATHS: &[(SfxType, Sfx, &str)] = &[
(
SfxType::Radio,
Sfx::BGM,
"music/Aleksey Chistilin - Cinematic Cello.ogg",
),
(
SfxType::Radio,
Sfx::BGMActualJupiterRecording,
@ -81,6 +86,7 @@ const PATHS: &[(SfxType, Sfx, &str)] = &[
#[derive(Component, PartialEq, Hash, Eq, Copy, Clone)]
pub enum Sfx {
Achieve,
BGM,
BGMActualJupiterRecording,
Click,
Connect,

View file

@ -174,13 +174,15 @@ impl Default for Settings {
noise_cancellation_mode: 0,
noise_cancellation_modes: vec![
"Off".to_string(),
"On".to_string(),
"Ambience".to_string(),
"Mechanical".to_string(),
"Max".to_string(),
],
radio_mode: 1,
radio_modes: vec![
// see also: settings.is_radio_playing()
"Off".to_string(),
"Amplify outside recordings".to_string(),
"Cinematic Frequency".to_string(),
],
volume_sfx: 100,
volume_music: 100,
@ -334,8 +336,10 @@ impl Settings {
pub fn is_radio_playing(&self, sfx: audio::Sfx) -> Option<bool> {
let radio = self.radio_mode;
let ambience = self.noise_cancellation_mode != 1 && self.noise_cancellation_mode != 3;
match sfx {
audio::Sfx::BGMActualJupiterRecording => Some(radio == 1),
audio::Sfx::BGM => Some(radio == 1),
audio::Sfx::BGMActualJupiterRecording => Some(radio == 0 && ambience),
_ => None,
}
}
@ -348,7 +352,7 @@ impl Settings {
value
};
self.noise_cancellation_mode = value;
self.mute_sfx = value >= 1;
self.mute_sfx = value >= 2;
}
}