Skip to content

Commit

Permalink
Change to allow AudioKit to compile on xrOS
Browse files Browse the repository at this point in the history
  • Loading branch information
aure committed Jun 25, 2023
1 parent a86183e commit e2ac59b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ extension FormatConverter {
let writerInput = AVAssetWriterInput(mediaType: .audio, outputSettings: outputSettings, sourceFormatHint: hint)
writer.add(writerInput)

guard let track = asset.tracks(withMediaType: .audio).first else {
guard let track = asset.tracks.first(where: { $0.mediaType == .audio}) else {
completionProxy(error: Self.createError(message: "No audio was found in the input file."),
completionHandler: completionHandler)
return
Expand Down

0 comments on commit e2ac59b

Please sign in to comment.