diff --git a/native/app/Source/Constants.swift b/native/app/Source/Constants.swift index 74c1e57..7063535 100644 --- a/native/app/Source/Constants.swift +++ b/native/app/Source/Constants.swift @@ -38,10 +38,10 @@ struct Constants { static let FULL_VOLUME_STEPS: [Double] = Array(stride(from: 0.0, through: 2.0, by: FULL_VOLUME_STEP)) static let QUARTER_VOLUME_STEPS: [Double] = Array(stride(from: 0.0, through: 2.0, by: QUARTER_VOLUME_STEP)) - static let TRANSITION_DURATION: Int = 500 + static let TRANSITION_DURATION: UInt = 500 static let TRANSITION_FPS: Double = 30 static let TRANSITION_FRAME_DURATION: Double = 1000 / TRANSITION_FPS - static let TRANSITION_FRAME_COUNT = Int(round(TRANSITION_FPS * (Double(TRANSITION_DURATION) / 1000))) + static let TRANSITION_FRAME_COUNT = UInt(round(TRANSITION_FPS * (Double(TRANSITION_DURATION) / 1000))) static let SUPPORTED_TRANSPORT_TYPES = [ TransportType.airPlay, TransportType.bluetooth, diff --git a/native/app/Source/Helpers/Time.swift b/native/app/Source/Helpers/Time.swift index de270c6..b37869a 100644 --- a/native/app/Source/Helpers/Time.swift +++ b/native/app/Source/Helpers/Time.swift @@ -10,9 +10,9 @@ import Foundation class Time { - static var stamp: Int { + static var stamp: UInt { get { - return Int(NSDate().timeIntervalSince1970 * 1000) + return UInt(NSDate().timeIntervalSince1970 * 1000) } } } diff --git a/native/app/Source/Helpers/Utilities.swift b/native/app/Source/Helpers/Utilities.swift index aa978f7..54b6965 100644 --- a/native/app/Source/Helpers/Utilities.swift +++ b/native/app/Source/Helpers/Utilities.swift @@ -17,7 +17,7 @@ class Utilities { return Bundle.main.infoDictionary![key] as! String } - static func delay (_ milliseconds: Int, completion: @escaping () -> ()) { + static func delay (_ milliseconds: UInt, completion: @escaping () -> ()) { DispatchQueue.main.asyncAfter(deadline: .now() + Double(milliseconds) / 1000) { completion() } } }