<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVCaptureSpatialAudioMetadataSampleGenerator/resetAnalyzer()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVCaptureSpatialAudioMetadataSampleGenerator(im)resetAnalyzer"
  },
  "title" : "resetAnalyzer()"
}
-->

# resetAnalyzer()

Calling this method resets the analyzer to its initial state so that a new run of audio sample buffers can be analyzed.

```
func resetAnalyzer()
```

## Discussion

Call this method if you need to abort generating the audio timed metadata buffer for audio already provided to [`analyzeAudioSample(_:)`](/documentation/AVFoundation/AVCaptureSpatialAudioMetadataSampleGenerator/analyzeAudioSample(_:)).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)