---
title: kAudioFileStreamProperty_PacketToFrame
framework: audiotoolbox
role: symbol
role_heading: Global Variable
path: audiotoolbox/kaudiofilestreamproperty_packettoframe
---

# kAudioFileStreamProperty_PacketToFrame

Obtains the frame number corresponding to a packet number.

## Declaration

```swift
var kAudioFileStreamProperty_PacketToFrame: AudioFileStreamPropertyID { get }
```

## Discussion

Discussion Obtains the frame number corresponding to a packet number. Pass an AudioFramePacketTranslation structure with the mPacket field filled in, and a value in the mFrame field is returned on output.  (The mFrameOffsetInPacket field of the AudioFramePacketTranslation structure is ignored.) For more information on the audio frame packet translation structure, see Audio File Services.

## See Also

### Constants

- [kAudioFileStreamProperty_ReadyToProducePackets](audiotoolbox/kaudiofilestreamproperty_readytoproducepackets.md)
- [kAudioFileStreamProperty_FileFormat](audiotoolbox/kaudiofilestreamproperty_fileformat.md)
- [kAudioFileStreamProperty_DataFormat](audiotoolbox/kaudiofilestreamproperty_dataformat.md)
- [kAudioFileStreamProperty_FormatList](audiotoolbox/kaudiofilestreamproperty_formatlist.md)
- [kAudioFileStreamProperty_MagicCookieData](audiotoolbox/kaudiofilestreamproperty_magiccookiedata.md)
- [kAudioFileStreamProperty_AudioDataByteCount](audiotoolbox/kaudiofilestreamproperty_audiodatabytecount.md)
- [kAudioFileStreamProperty_AudioDataPacketCount](audiotoolbox/kaudiofilestreamproperty_audiodatapacketcount.md)
- [kAudioFileStreamProperty_MaximumPacketSize](audiotoolbox/kaudiofilestreamproperty_maximumpacketsize.md)
- [kAudioFileStreamProperty_DataOffset](audiotoolbox/kaudiofilestreamproperty_dataoffset.md)
- [kAudioFileStreamProperty_ChannelLayout](audiotoolbox/kaudiofilestreamproperty_channellayout.md)
- [kAudioFileStreamProperty_FrameToPacket](audiotoolbox/kaudiofilestreamproperty_frametopacket.md)
- [kAudioFileStreamProperty_PacketToByte](audiotoolbox/kaudiofilestreamproperty_packettobyte.md)
- [kAudioFileStreamProperty_ByteToPacket](audiotoolbox/kaudiofilestreamproperty_bytetopacket.md)
- [kAudioFileStreamProperty_PacketTableInfo](audiotoolbox/kaudiofilestreamproperty_packettableinfo.md)
- [kAudioFileStreamProperty_PacketSizeUpperBound](audiotoolbox/kaudiofilestreamproperty_packetsizeupperbound.md)
