---
title: "applied(to:eventHandler:)"
framework: createmlcomponents
role: symbol
role_heading: Instance Method
path: "createmlcomponents/audioconvertingtransformer/applied(to:eventhandler:)"
---

# applied(to:eventHandler:)

Performs conversion of the input audio buffer.

## Declaration

```swift
func applied(to input: AVAudioPCMBuffer, eventHandler: EventHandler? = nil) throws -> AVAudioPCMBuffer
```

## Parameters

- `input`: The audio buffer that will be converted.
- `eventHandler`: An event handler.

## Return Value

Return Value An output audio buffer by converting the input buffer to the targetFormat.
