# Zoom IOS SDK Audio. Bits per channel in Raw Data

**URL:** <https://devforum.zoom.us/t/zoom-ios-sdk-audio-bits-per-channel-in-raw-data/40241>\
**Category:** iOS\
**Created:** [January 11, 2021, 5:50pm UTC](https://devforum.zoom.us/t/zoom-ios-sdk-audio-bits-per-channel-in-raw-data/40241 "2021-01-11T17:50:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![n.milko](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/n.milko/32/21298_2.png) [@n.milko](https://devforum.zoom.us/u/n.milko)\
**Post date:** [January 11, 2021, 5:50pm UTC](https://devforum.zoom.us/t/zoom-ios-sdk-audio-bits-per-channel-in-raw-data/40241/1 "2021-01-11T17:50:57Z")

</div>

**Description**  
Hi!  
We use IOS SDK and we can get Raw Audio. There is no bits per channel in the audio data. How to find out this value?  
Thanks!

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [January 11, 2021, 9:44pm UTC](https://devforum.zoom.us/t/zoom-ios-sdk-audio-bits-per-channel-in-raw-data/40241/2 "2021-01-11T21:44:51Z")

</div>

Hey @n.milko,

Thanks for using the dev forum!  
There is currently no interface for this in the SDK. I believe this would have to be calculated by the developer.

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![n.milko](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/n.milko/32/21298_2.png) [@n.milko](https://devforum.zoom.us/u/n.milko)\
**Post date:** [January 12, 2021, 10:11am UTC](https://devforum.zoom.us/t/zoom-ios-sdk-audio-bits-per-channel-in-raw-data/40241/3 "2021-01-12T10:11:57Z")

</div>

Hi, Michael!

I have the following parameters: sample rate, number of channels and buffer length. I need to know the duration of one buffer. I miss either the size of one sample, or the number of samples in the buffer. How do I calculate this?

Thanks!  
Nik.

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [January 12, 2021, 11:45pm UTC](https://devforum.zoom.us/t/zoom-ios-sdk-audio-bits-per-channel-in-raw-data/40241/4 "2021-01-12T23:45:30Z")

</div>

Hey @n.milko,

Hmm I am not entirely sure. It may be worth looking into a library to process the raw data for you so that you can take advantage of the functionality in them. This might help [Apple Developer Documentation](https://developer.apple.com/documentation/coremedia/1489295-cmsamplebuffergetsamplesizearray?language=objc)  
However, this is beyond the scope of the SDK, unfortunately.

Thanks!  
Michael
