You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -72,8 +72,8 @@ The output file's format is inferred from the file extension.
72
72
More complex conversions are supported including writing to `Data` instead of files:
73
73
74
74
~~~swift
75
-
let output =OutputSource.makeForData()
76
-
let encoder =tryAudioEncoder(outputSource: output, encoderName: .coreAudio)
75
+
let output =OutputTarget.makeForData()
76
+
let encoder =tryAudioEncoder(outputTarget: output, encoderName: .coreAudio)
77
77
encoder.settings= [
78
78
.coreAudioFileTypeID: kAudioFileM4AType,
79
79
.coreAudioFormatID: kAudioFormatMPEG4AAC,
@@ -114,9 +114,9 @@ Three special decoder subclasses that decorate an underlying audio decoder insta
114
114
115
115
## Encoding
116
116
117
-
[Audio encoders](Sources/CSFBAudioEngine/Encoders/) in SFBAudioEngine process input data and convert it to their output format. Audio encoders write data to an [SFBOutputSource](Sources/CSFBAudioEngine/include/SFBOutputSource.h) which may refer to a file, buffer, or data.
117
+
[Audio encoders](Sources/CSFBAudioEngine/SFBAudioEngine/Encoders/) in SFBAudioEngine process input data and convert it to their output format. Audio encoders write data to an [SFBOutputTarget](Sources/CSFBAudioEngine/include/SFBAudioEngine/SFBOutputTarget.h) which may refer to a file, buffer, or data.
118
118
119
-
All audio encoders in SFBAudioEngine implement the [SFBAudioEncoding](Sources/CSFBAudioEngine/include/SFBAudioEncoding.h) protocol. PCM-consuming encoders additionally implement [SFBPCMEncoding](Sources/CSFBAudioEngine/include/SFBPCMEncoding.h). Currently there are no encoders consuming DSD in SFBAudioEngine.
119
+
All audio encoders in SFBAudioEngine implement the [SFBAudioEncoding](Sources/CSFBAudioEngine/include/SFBAudioEncoding.h) protocol. PCM-consuming encoders additionally implement [SFBPCMEncoding](Sources/CSFBAudioEngine/include/SFBAudioEngine/SFBPCMEncoding.h). Currently there are no encoders consuming DSD in SFBAudioEngine.
120
120
121
121
Encoders don't support arbitrary input formats. The processing format used by an encoder is derived from a desired format combined with the encoder's settings.
0 commit comments