Oath speech in the deep warrior voice, cinematic camera, crowd calls your name

Stand von main 730ac6a2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-09 21:43:38 +01:00
parent 9c433c61ba
commit 0454683fc3
29 changed files with 1249 additions and 57 deletions

View File

@@ -378,6 +378,16 @@ namespace GladiatorIdle
});
}
/// Fertige Stereo-Daten (44,1 kHz) abspielen – Namensrufe; Lautstärke der Erzählstimme.
public static void PlayPcm(string name, float[]? data, float gain = 1f)
{
if (DevShot.SoundLog) DevShot.Log($"sound: want {name}" + (data == null ? " (not ready)" : ""));
if (!_enabled || data == null || VoiceLevel <= 0.001f) return;
var mixer = Mixer;
if (mixer == null) return;
mixer.AddMixerInput(new ClipVoice(data, gain * VoiceLevel / Math.Max(0.05f, SfxLevel)));
}
/// Clip dekodiert als 44,1 kHz Stereo-Float, gecacht. MP3 aus Assets/Audio, sonst Fallback-WAV.
static float[]? Clip(string name, byte[]? fallback)
{