---
title: kAudioFormatMIDIStream
framework: coreaudiotypes
role: symbol
role_heading: Global Variable
path: coreaudiotypes/kaudioformatmidistream
---

# kAudioFormatMIDIStream

A key that specifies the MIDI stream codec, and uses no flags.

## Declaration

```swift
var kAudioFormatMIDIStream: AudioFormatID { get }
```

## Discussion

Discussion This codec contains a stream of MIDIPacketList structures where the time stamps are sample offsets in the stream. The mSampleRate field describes how time passes in this stream. An audio unit that receives or generates this stream can use this sample rate, the number of frames it’s rendering, and the sample offsets within the MIDIPacketList to define the time for any MIDI event within this list.

## See Also

### Format identifiers

- [kAudioFormat60958AC3](coreaudiotypes/kaudioformat60958ac3.md)
- [kAudioFormatAC3](coreaudiotypes/kaudioformatac3.md)
- [kAudioFormatAES3](coreaudiotypes/kaudioformataes3.md)
- [kAudioFormatALaw](coreaudiotypes/kaudioformatalaw.md)
- [kAudioFormatAMR](coreaudiotypes/kaudioformatamr.md)
- [kAudioFormatAMR_WB](coreaudiotypes/kaudioformatamr_wb.md)
- [kAudioFormatAppleIMA4](coreaudiotypes/kaudioformatappleima4.md)
- [kAudioFormatAppleLossless](coreaudiotypes/kaudioformatapplelossless.md)
- [kAudioFormatAudible](coreaudiotypes/kaudioformataudible.md)
- [kAudioFormatDVIIntelIMA](coreaudiotypes/kaudioformatdviintelima.md)
- [kAudioFormatEnhancedAC3](coreaudiotypes/kaudioformatenhancedac3.md)
- [kAudioFormatFLAC](coreaudiotypes/kaudioformatflac.md)
- [kAudioFormatLinearPCM](coreaudiotypes/kaudioformatlinearpcm.md)
- [kAudioFormatMACE3](coreaudiotypes/kaudioformatmace3.md)
- [kAudioFormatMACE6](coreaudiotypes/kaudioformatmace6.md)
