Skip to content
Open
Show file tree
Hide file tree
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
7 changes: 6 additions & 1 deletion FineTune/Settings/SettingsManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ struct AppSettings: Codable, Equatable {
// Audio
var defaultNewAppVolume: Float = 1.0 // 100% (unity gain)
var maxVolumeBoost: Float = 2.0 // 200% max
var defaultEQEnabled: Bool = true // Whether EQ is enabled by default for new apps

// Input Device Lock
var lockInputDevice: Bool = true // Prevent auto-switching input device
Expand Down Expand Up @@ -139,7 +140,11 @@ final class SettingsManager {
}

func getEQSettings(for appIdentifier: String) -> EQSettings {
return settings.appEQSettings[appIdentifier] ?? EQSettings.flat
if let savedSettings = settings.appEQSettings[appIdentifier] {
return savedSettings
}
// Return default EQ with isEnabled based on user preference
return EQSettings(isEnabled: settings.appSettings.defaultEQEnabled)
}

func setEQSettings(_ eqSettings: EQSettings, for appIdentifier: String) {
Expand Down
7 changes: 7 additions & 0 deletions FineTune/Views/Settings/SettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,13 @@ struct SettingsView: View {
range: 1.0...4.0
)

SettingsToggleRow(
icon: "slider.vertical.3",
title: "Enable EQ by Default",
description: "Automatically enable equalizer for new apps",
isOn: $settings.defaultEQEnabled
)

SettingsToggleRow(
icon: "mic",
title: "Lock Input Device",
Expand Down