Commit 30/09/2025
This commit is contained in:
@@ -5,6 +5,7 @@ import com.sun.jna.Platform
|
||||
import commandServer.TCP_Android_Command_Server
|
||||
import content.Language
|
||||
import content.VoiceType
|
||||
import database.Log
|
||||
import database.MariaDB
|
||||
import kotlinx.coroutines.CoroutineScope
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
@@ -19,7 +20,7 @@ import kotlin.concurrent.fixedRateTimer
|
||||
lateinit var db: MariaDB
|
||||
lateinit var audioPlayer: AudioPlayer
|
||||
val StreamerOutputs: MutableMap<String, BarixConnection> = HashMap()
|
||||
const val version = "0.0.1 (23/09/2025)"
|
||||
const val version = "0.0.2 (23/09/2025)"
|
||||
|
||||
// dipakai untuk pilih voice type, bisa diganti via web nanti
|
||||
var selected_voice = VoiceType.VOICE_1.name
|
||||
@@ -76,14 +77,15 @@ fun main() {
|
||||
val androidserver = TCP_Android_Command_Server()
|
||||
androidserver.StartTcpServer(5003){
|
||||
Logger.info { it }
|
||||
db.Add_Log("ANDROID", it)
|
||||
|
||||
db.logDB.Add(Log.NewLog("ANDROID", it))
|
||||
}
|
||||
|
||||
val barixserver = TCP_Barix_Command_Server()
|
||||
barixserver.StartTcpServer { cmd ->
|
||||
Logger.info { cmd }
|
||||
val _streamer = StreamerOutputs[cmd.ipaddress]
|
||||
val _sc = db.SoundChannelList.find { it.ip == cmd.ipaddress }
|
||||
val _sc = db.soundchannelDB.List.find { it.ip == cmd.ipaddress }
|
||||
if (_streamer == null) {
|
||||
// belum create BarixConnection untuk ipaddress ini
|
||||
Logger.info { "New Streamer Output connection from ${cmd.ipaddress}" }
|
||||
|
||||
Reference in New Issue
Block a user