在Xcode:Swift 2.0中记录设置
下面是我在教程()中看到的一段Swift 2.0代码。我在第一行得到错误: 表达式类型不明确,没有更多内容 您可以尝试:在Xcode:Swift 2.0中记录设置,xcode,audio,swift2,avaudioplayer,Xcode,Audio,Swift2,Avaudioplayer,下面是我在教程()中看到的一段Swift 2.0代码。我在第一行得到错误: 表达式类型不明确,没有更多内容 您可以尝试: var recordSettings : [String : Any] = [ AVFormatIDKey: kAudioFormatMPEG4AAC, AVEncoderAudioQualityKey : AVAudioQuality.Max.rawValue, AVEncoderBitRateKey : 320000, AVNumberOf
var recordSettings : [String : Any] =
[
AVFormatIDKey: kAudioFormatMPEG4AAC,
AVEncoderAudioQualityKey : AVAudioQuality.Max.rawValue,
AVEncoderBitRateKey : 320000,
AVNumberOfChannelsKey: 2,
AVSampleRateKey : 44100.0
]
var recordSettings : [String : Any] =
[
AVFormatIDKey: kAudioFormatMPEG4AAC,
AVEncoderAudioQualityKey : AVAudioQuality.Max.rawValue,
AVEncoderBitRateKey : 320000,
AVNumberOfChannelsKey: 2,
AVSampleRateKey : 44100.0
]