【发布时间】:2018-05-17 14:58:25
【问题描述】:
此代码给出错误“pathExtension”不可用:请在 URL 上使用 pathExtension:
if originalAudioFormat == "MP2" || originalAudioFormat == "BWFMP2" {
SourceFileNameWithPath = decodeMp2ToWav()
if SourceFileNameWithPath.pathExtension != "wav" { //error at this line
print("save File as PCM Fehler: \(SourceFileNameWithPath)")
return
}
【问题讨论】: