---
title: resetAnalyzer()
framework: avfoundation
role: symbol
role_heading: Instance Method
path: avfoundation/avcapturespatialaudiometadatasamplegenerator/resetanalyzer()
---

# resetAnalyzer()

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

## Declaration

```swift
func resetAnalyzer()
```

## Discussion

Discussion Call this method if you need to abort generating the audio timed metadata buffer for audio already provided to analyzeAudioSample(_:).

## See Also

### Analyzing audio samples

- [analyzeAudioSample(_:)](avfoundation/avcapturespatialaudiometadatasamplegenerator/analyzeaudiosample(_:).md)
- [newTimedMetadataSampleBufferAndResetAnalyzer()](avfoundation/avcapturespatialaudiometadatasamplegenerator/newtimedmetadatasamplebufferandresetanalyzer().md)
- [timedMetadataSampleBufferFormatDescription](avfoundation/avcapturespatialaudiometadatasamplegenerator/timedmetadatasamplebufferformatdescription.md)
