---
title: kMDItemBitsPerSample
framework: coreservices
role: symbol
role_heading: Global Variable
path: coreservices/kmditembitspersample
---

# kMDItemBitsPerSample

The number of bits per sample. For example, the bit depth of an image (8-bit, 16-bit etc...) or the bit depth per audio sample of uncompressed audio data (8, 16, 24, 32, 64, etc..). A CFNumber.

## Declaration

```swift
let kMDItemBitsPerSample: CFString!
```
