Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename iOS audio sensor values #3237

Merged
merged 1 commit into from
Dec 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 15 additions & 14 deletions Sources/Shared/API/Webhook/Sensors/AudioOutputSensor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,35 +50,36 @@ final class AudioOutputSensor: SensorProvider {

switch type {
case .airPlay:
audioOutput.type = "airplay"
audioOutput.type = "AirPlay"
case .bluetoothA2DP:
audioOutput.type = "bluetoothA2DP"
audioOutput.type = "Bluetooth A2DP"
case .bluetoothHFP:
audioOutput.type = "bluetoothHFP"
audioOutput.type = "Bluetooth HFP"
case .bluetoothLE:
audioOutput.type = "bluetoothLE"
audioOutput.type = "Bluetooth LE"
case .builtInMic:
audioOutput.type = "builtInMic"
audioOutput.type = "Built-in Mic"
case .builtInReceiver:
audioOutput.type = "builtInReceiver"
audioOutput.type = "Built-in Receiver"
case .builtInSpeaker:
audioOutput.type = "builtInSpeaker"
audioOutput.type = "Built-in Speaker"
case .carAudio:
audioOutput.type = "carAudio"
// Car Audio is always CarPlay https://bignerdranch.com/blog/detecting-caraudio/
audioOutput.type = "CarPlay"
case .HDMI:
audioOutput.type = "HDMI"
case .headphones:
audioOutput.type = "headphones"
audioOutput.type = "Headphones"
case .headsetMic:
audioOutput.type = "headsetMic"
audioOutput.type = "Headset Mic"
case .lineIn:
audioOutput.type = "lineIn"
audioOutput.type = "Line In"
case .lineOut:
audioOutput.type = "lineOut"
audioOutput.type = "Line Out"
case .usbAudio:
audioOutput.type = "usbAudio"
audioOutput.type = "Usb Audio"
default:
audioOutput.type = "unknown"
audioOutput.type = "Unknown"
}
return audioOutput
}
Expand Down
Loading