mirror of
https://github.com/bitgapp/eqMac.git
synced 2024-12-03 07:31:45 +03:00
35 lines
968 B
Swift
35 lines
968 B
Swift
//
|
|
// Storage.swift
|
|
// eqMac
|
|
//
|
|
// Created by Roman Kisil on 12/05/2018.
|
|
// Copyright © 2018 Roman Kisil. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
import KeychainSwift
|
|
import SwiftyUserDefaults
|
|
import AVFoundation
|
|
|
|
extension DefaultsKeys {
|
|
static let state = DefaultsKey<ApplicationState?>("state")
|
|
|
|
static let isFirstLaunch = DefaultsKey<Bool?>("isFirstLaunch")
|
|
// Device
|
|
static let lastKnownOutputDeviceId = DefaultsKey<Int?>("lastKnownOutputDeviceId")
|
|
static let lastKnownInputDeviceId = DefaultsKey<Int?>("lastKnownInputDeviceId")
|
|
|
|
// Effects
|
|
// Effects - Equalizer
|
|
// Effects - Equalizer - Basic
|
|
static let basicEqualizerPresets = DefaultsKey<[BasicEqualizerPreset]?>("basicEqualizerPresets")
|
|
|
|
// Effects - Equalizer - Advanced
|
|
static let advancedEqualizerPresets = DefaultsKey<[AdvancedEqualizerPreset]?>("advancedEqualizerPresets")
|
|
}
|
|
|
|
let Storage = Defaults
|
|
let StorageKeys = DefaultsKeys.self
|
|
|
|
let Keychain = KeychainSwift()
|