---
title: AUHostMusicalContextBlock
framework: audiotoolbox
role: symbol
role_heading: Type Alias
path: audiotoolbox/auhostmusicalcontextblock
---

# AUHostMusicalContextBlock

A block through which hosts provide musical tempo, time signature, and beat position.

## Declaration

```swift
typealias AUHostMusicalContextBlock = (UnsafeMutablePointer<Double>?, UnsafeMutablePointer<Double>?, UnsafeMutablePointer<Int>?, UnsafeMutablePointer<Double>?, UnsafeMutablePointer<Int>?, UnsafeMutablePointer<Double>?) -> Bool
```

## Discussion

Discussion If the host app provides this block to an audio unit, via the musicalContextBlock property, then the block may be called at the beginning of each render cycle to obtain information about the current render cycle’s musical context. Any of the provided parameters may be null to indicate that the audio unit is not interested in that particular piece of information. This block returns true if the operation was successful and false otherwise. The block takes the following parameters:

## See Also

### Providing Data to the Host

- [musicalContextBlock](audiotoolbox/auaudiounit/musicalcontextblock.md)
- [transportStateBlock](audiotoolbox/auaudiounit/transportstateblock.md)
- [contextName](audiotoolbox/auaudiounit/contextname.md)
- [supportsMPE](audiotoolbox/auaudiounit/supportsmpe.md)
- [AUHostTransportStateBlock](audiotoolbox/auhosttransportstateblock.md)
