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