Skip to content

Commit 26545f2

Browse files
committed
Added bits property to BitDepth
1 parent 1ea1d39 commit 26545f2

File tree

1 file changed

+15
-0
lines changed
  • Sources/SwiftAudioFileConverter/AudioFileConverter/Settings

1 file changed

+15
-0
lines changed

Sources/SwiftAudioFileConverter/AudioFileConverter/Settings/BitDepth.swift

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,18 @@ extension AudioFileConverter.BitDepth: CustomStringConvertible {
3535
}
3636
}
3737
}
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

Comments
 (0)