Why does averagePowerForChannel always return -160?
问题 I have these code and both method call are SUCCESS. AVAudioSession *audioSession = [AVAudioSession sharedInstance]; [audioSession setCategory: AVAudioSessionCategoryPlayAndRecord error: NULL]; [audioSession setActive: YES error: NULL]; And these code to start recording: [self.recorder prepareToRecord]; [self.recorder recordForDuration: 60]; I have a timer function to update meters - (void)updateMeters { [self.recorder updateMeters]; float peakPower = [self.recorder averagePowerForChannel: 0];