chore: set default AUDIO_VOLUME to 100 for maximum HQ speaker distance/volume (v1.0.19)
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
-- ============================================================================
|
||||
-- 1. Configuration & Constants
|
||||
-- ============================================================================
|
||||
local APP_VERSION_TEXT = "v1.0.18"
|
||||
local APP_VERSION_TEXT = "v1.0.19"
|
||||
|
||||
local CONFIG = {
|
||||
CLOUD_URL = "ws://stabadmin.fse-media.group",
|
||||
@@ -13,7 +13,7 @@ local CONFIG = {
|
||||
DISK_AUDIO_BASE = "disk/Audio/",
|
||||
DISK_AUDIO_STATION = "disk/Audio/Station/",
|
||||
STATION_IDENTITY_FILE = "station_identity.cfg",
|
||||
AUDIO_VOLUME = 3,
|
||||
AUDIO_VOLUME = 100,
|
||||
AUDIO_STREAM_PREROLL_CHUNKS = 5,
|
||||
DEBUG = true
|
||||
}
|
||||
@@ -1128,7 +1128,8 @@ local function queueSamplesSynchronized(samples, volume, playSeq)
|
||||
for name, sp in pairs(pending) do
|
||||
local ok = false
|
||||
pcall(function()
|
||||
ok = sp.playAudio(samples, volume)
|
||||
local safeVolume = math.min(volume or 3, 3.0)
|
||||
ok = sp.playAudio(samples, safeVolume)
|
||||
end)
|
||||
if ok then
|
||||
pending[name] = nil
|
||||
@@ -1162,7 +1163,8 @@ local function playChunkOnSpeakers(samples, volume, playSeq, waitForDrain)
|
||||
local ok = false
|
||||
pcall(function()
|
||||
if type(sp.playAudio) == "function" then
|
||||
ok = sp.playAudio(samples, volume)
|
||||
local safeVolume = math.min(volume or 3, 3.0)
|
||||
ok = sp.playAudio(samples, safeVolume)
|
||||
end
|
||||
end)
|
||||
if ok then
|
||||
@@ -1188,7 +1190,8 @@ local function playChunkOnSpeakers(samples, volume, playSeq, waitForDrain)
|
||||
if shouldStop(playSeq) then return false end
|
||||
local ok = false
|
||||
pcall(function()
|
||||
ok = controller.playAudioAll(samples, volume)
|
||||
local safeVolume = math.min(volume or 3, 3.0)
|
||||
ok = controller.playAudioAll(samples, safeVolume)
|
||||
end)
|
||||
if ok then break end
|
||||
local ev = { os.pullEvent() }
|
||||
|
||||
Reference in New Issue
Block a user