---
title: "matchStreamingBuffer(_:at:)"
framework: shazamkit
role: symbol
role_heading: Instance Method
path: "shazamkit/shsession/matchstreamingbuffer(_:at:)"
---

# matchStreamingBuffer(_:at:)

Converts the audio in the buffer to a signature, and searches the reference signatures in the session catalog.

## Declaration

```swift
func matchStreamingBuffer(_ buffer: AVAudioPCMBuffer, at time: AVAudioTime?)
```

## Parameters

- `buffer`: An audio buffer.
- `time`: The start time of the audio to use for generating the signatures.

## Discussion

Discussion This method continues to generate signatures and perform searches until the audio in the buffer stops, which may result in multiple calls to the delegate. The audio buffer must be in one of the supported formats. For the list of the supported audio formats, see append(_:at:). To use the microphone as input for the buffer, see Matching audio using the built-in microphone. note: You must use the audio format of the first call to this method in the current session in all subsequent calls for the session.

## See Also

### Making a match

- [match(_:)](shazamkit/shsession/match(_:).md)
- [Matching audio using the built-in microphone](shazamkit/matching-audio-using-the-built-in-microphone.md)
