🍦 SwiftServe Get

Menu / audio.session-management

Can Swift packages do audio session management?

also known as: avaudiosession · audio routing · interruption handling

Built into the OS — no dependency

Apple frameworkiOSmacOSwatchOStvOSvisionOSLinuxCatalyst
AVFAudio built in as of Xcode 26.6
Details

The system audio session itself — category, activation, routing.

serves it · confidence 0.90 · as of Xcode 26.6

not served here · confidence 0.90 · as of Xcode 26.6

serves it · confidence 0.90 · as of Xcode 26.6

serves it · confidence 0.90 · as of Xcode 26.6

serves it · confidence 0.90 · as of Xcode 26.6

not served here · confidence 0.90 · as of Xcode 26.6

serves it · confidence 0.90 · as of Xcode 26.6

PackageiOSmacOSwatchOStvOSvisionOSLinuxCatalyst
LiveKit as of 2.15.1
Details

serves it · confidence 0.90 · as of 2.15.1

  • AudioSessionEngineObserver
    #if os(iOS) || os(visionOS) || os(tvOS)
    Sources/LiveKit/Audio/AudioSessionEngineObserver.swift:24
    View the line on GitHub →
    automatic AVAudioSession configuration observer

not served here · confidence 0.85 · as of 2.15.1

  • AudioSessionEngineObserver
    #if os(iOS) || os(visionOS) || os(tvOS)
    Sources/LiveKit/Audio/AudioSessionEngineObserver.swift:24
    View the line on GitHub →
    the session-management observer is fenced to iOS/visionOS/tvOS — macOS has no AVAudioSession; the line that decides it

not served here · confidence 0.80 · as of 2.15.1

  • AudioSessionEngineObserver
    #if os(iOS) || os(visionOS) || os(tvOS)
    Sources/LiveKit/Audio/AudioSessionEngineObserver.swift:24
    View the line on GitHub →

serves it · confidence 0.90 · as of 2.15.1

  • AudioSessionEngineObserver
    #if os(iOS) || os(visionOS) || os(tvOS)
    Sources/LiveKit/Audio/AudioSessionEngineObserver.swift:24
    View the line on GitHub →

serves it · confidence 0.90 · as of 2.15.1

  • AudioSessionEngineObserver
    #if os(iOS) || os(visionOS) || os(tvOS)
    Sources/LiveKit/Audio/AudioSessionEngineObserver.swift:24
    View the line on GitHub →

not served here · confidence 0.80 · as of 2.15.1

  • AudioSessionEngineObserver
    #if os(iOS) || os(visionOS) || os(tvOS)
    Sources/LiveKit/Audio/AudioSessionEngineObserver.swift:24
    View the line on GitHub →

serves it · confidence 0.85 · as of 2.15.1

  • AudioSessionEngineObserver
    #if os(iOS) || os(visionOS) || os(tvOS)
    Sources/LiveKit/Audio/AudioSessionEngineObserver.swift:24
    View the line on GitHub →
    present via os(iOS) — Catalyst compiles as iOS
SwiftySound as of 1.3.0
Details

serves it · confidence 0.80 · as of 1.3.0

not served here · confidence 0.80 · as of 1.3.0

  • SoundCategory
    #if os(iOS) || os(tvOS)
    Sources/Sound.swift:32
    View the line on GitHub →
    session categories exist only where AVAudioSession does

not served here · confidence 0.75 · as of 1.3.0

  • SoundCategory
    #if os(iOS) || os(tvOS)
    Sources/Sound.swift:32
    View the line on GitHub →
    session categories exist only where AVAudioSession does

serves it · confidence 0.80 · as of 1.3.0

not served here · confidence 0.70 · as of 1.3.0

  • SoundCategory
    #if os(iOS) || os(tvOS)
    Sources/Sound.swift:32
    View the line on GitHub →
    session categories exist only where AVAudioSession does

not served here · confidence 0.75 · as of 1.3.0

  • SoundCategory
    #if os(iOS) || os(tvOS)
    Sources/Sound.swift:32
    View the line on GitHub →
    session categories exist only where AVAudioSession does

serves it · confidence 0.70 · as of 1.3.0

✓ serves it · ◐ with conditions · ✕ not served (proven) · ? not verified yet — hover any verdict for the receipt, click to pin it