We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ea1d39 commit 26545f2Copy full SHA for 26545f2
1 file changed
Sources/SwiftAudioFileConverter/AudioFileConverter/Settings/BitDepth.swift
@@ -35,3 +35,18 @@ extension AudioFileConverter.BitDepth: CustomStringConvertible {
35
}
36
37
38
+
39
+// MARK: - Properties
40
41
+extension AudioFileConverter.BitDepth {
42
+ public var bits: Int {
43
+ switch self {
44
+ case .int16:
45
+ 16
46
+ case .int24:
47
+ 24
48
+ case .float32:
49
+ 32
50
+ }
51
52
+}
0 commit comments