# Get number of channels in a file?

**URL:** <https://qa.fmod.com/t/get-number-of-channels-in-a-file/20618>\
**Category:** FMOD Engine\
**Created:** [September 4, 2023, 7:27pm UTC](https://qa.fmod.com/t/get-number-of-channels-in-a-file/20618 "2023-09-04T19:27:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bLAZER](https://avatars.discourse-cdn.com/v4/letter/b/df705f/32.png) [@bLAZER](https://qa.fmod.com/u/bLAZER)\
**Post date:** [September 4, 2023, 7:27pm UTC](https://qa.fmod.com/t/get-number-of-channels-in-a-file/20618/1 "2023-09-04T19:27:38Z")

</div>

A simple thing I thought, but I can’t find anything in the docs. How do I get the number of channels in an audio stream, like for example in a loaded .wav, if it’s mono or stereo?

---

<div class="post-metadata">

**Author:** ![Leah\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/leah_fmod/32/3685_2.png) [@Leah\_FMOD](https://qa.fmod.com/u/Leah_FMOD)\
**Post date:** [September 5, 2023, 5:07am UTC](https://qa.fmod.com/t/get-number-of-channels-in-a-file/20618/2 "2023-09-05T05:07:26Z")

</div>

You can call [`Sound::getFormat`](https://www.fmod.com/docs/2.02/api/core-api-sound.html#sound_getformat), which among other info will provide you with the number channels in the Sound.
