You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
import AppKit
import DesignSystem
import NDIKit
import OSLog
import SwiftUI
@ main
struct MusubiApp : App {
@ NSApplicationDelegateAdaptor private var appDelegate : AppDelegate
var body : some SwiftUI . Scene {
Window ( " Musubi " , id : " main " ) {
ContentView ( sourceList : appDelegate . sourceList , coordinator : appDelegate . coordinator )
. preferredColorScheme ( . dark )
}
. defaultSize ( width : 960 , height : 600 )
Settings {
SettingsView ( coordinator : appDelegate . coordinator )
. preferredColorScheme ( . dark )
}
}
}
// / S t a r t s d i s c o v e r y , o u t p u t s , a u d i o a n d r e m o t e c o n t r o l a t l a u n c h – i n d e p e n d e n t o f a n y w i n d o w .
// / A s a l o g i n i t e m m a c O S m a y l a u n c h M u s u b i w i t h o u t o p e n i n g i t s w i n d o w .
@ MainActor
final class AppDelegate : NSObject , NSApplicationDelegate {
let sourceList = SourceListModel ( )
let coordinator = Coordinator ( settings : AppSettings ( ) , outputs : OutputController ( ) , audio : AudioController ( ) )
func applicationDidFinishLaunching ( _ notification : Notification ) {
sourceList . start ( )
Task { await coordinator . start ( ) }
}
}
enum Log {
static let ndi = Logger ( subsystem : " studio.zielke.musubi " , category : " ndi " )
static let audio = Logger ( subsystem : " studio.zielke.musubi " , category : " audio " )
static let remote = Logger ( subsystem : " studio.zielke.musubi " , category : " scene " )
static let intercom = Logger ( subsystem : " studio.zielke.musubi " , category : " intercom " )
}