We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dfe1f13 commit 3394b5fCopy full SHA for 3394b5f
2 files changed
Sources/SwiftAudioFileConverter/AudioFileSettings/AudioFileSettings.swift
@@ -31,6 +31,12 @@ extension AudioFileSettings: Hashable { }
31
32
extension AudioFileSettings: Sendable { }
33
34
+extension AudioFileSettings: CustomStringConvertible {
35
+ public var description: String {
36
+ "\(fileFormat) \(channelFormat) @ \(sampleRate)/\(bitDepth)"
37
+ }
38
+}
39
+
40
// MARK: - Properties
41
42
extension AudioFileSettings {
Sources/SwiftAudioFileConverter/AudioFileSettings/SampleRate.swift
@@ -22,3 +22,9 @@ extension SampleRate: Hashable { }
22
extension SampleRate: Sendable { }
23
24
extension SampleRate: CaseIterable { }
25
26
+extension SampleRate: CustomStringConvertible {
27
28
+ "\(rawValue)Hz"
29
30
0 commit comments