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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user