feat: 支持国标语音广播

This commit is contained in:
ydajiang
2025-05-09 20:56:17 +08:00
parent 9f22072406
commit b254fff76c
19 changed files with 1196 additions and 271 deletions

View File

@@ -53,3 +53,13 @@ func SinkId2String(id SinkID) string {
func CreateSinkDisconnectionMessage(sink Sink) string {
return fmt.Sprintf("%s sink断开连接. id: %s", sink.GetProtocol(), sink.GetID())
}
func ExecuteSyncEventOnSource(sourceId string, event func()) bool {
source := SourceManager.Find(sourceId)
if source != nil {
source.ExecuteSyncEvent(event)
return true
}
return false
}