Sound update

This commit is contained in:
Frank
2021-06-01 23:20:38 +02:00
parent 05f95796f6
commit bb43b08190
2 changed files with 24 additions and 13 deletions

View File

@@ -86,7 +86,7 @@
--
-- ## Set Culture
--
-- Use a specific "culture" by :SetCulture("en-US") or :SetGender("de-DE").
-- Use a specific "culture" by :SetCulture("en-US") or :SetCulture("de-DE").
--
-- ## Set Voice
--
@@ -479,6 +479,10 @@ function MSRS:_GetCommand(freqs, modus, coal, gender, voice, culture, volume, sp
speed=speed or self.speed
port=port or self.port
-- Replace modulation
modus=modus:gsub("0", "AM")
modus=modus:gsub("1", "FM")
-- This did not work well. Stopped if the transmission was a bit longer with no apparent error.
--local command=string.format("%s --freqs=%s --modulations=%s --coalition=%d --port=%d --volume=%.2f --speed=%d", exe, freqs, modus, coal, port, volume, speed)