# Maximum number of input channels

**URL:** <https://qa.fmod.com/t/maximum-number-of-input-channels/19464>\
**Category:** FMOD Engine\
**Created:** [November 1, 2022, 6:44pm UTC](https://qa.fmod.com/t/maximum-number-of-input-channels/19464 "2022-11-01T18:44:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tlanglois](https://avatars.discourse-cdn.com/v4/letter/t/a88e57/32.png) [@tlanglois](https://qa.fmod.com/u/tlanglois)\
**Post date:** [November 1, 2022, 6:44pm UTC](https://qa.fmod.com/t/maximum-number-of-input-channels/19464/1 "2022-11-01T18:44:53Z")

</div>

Is there anyway to get around the hardcoded FMOD\_MAX\_CHANNEL\_WIDTH constant, e.g. if I want to load a file that has 50 channels? I just need to create the sound and call readData, I’m not going to attach it to a channel or run through DSP. Thanks.

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [November 2, 2022, 5:57am UTC](https://qa.fmod.com/t/maximum-number-of-input-channels/19464/2 "2022-11-02T05:57:07Z")

</div>

Hi,

Unfortunately, FMOD does not support anything above our hard-coded max channel limit. If you could elaborate on why you need 50 channels I may be able to assist further.

---

<div class="post-metadata">

**Author:** ![tlanglois](https://avatars.discourse-cdn.com/v4/letter/t/a88e57/32.png) [@tlanglois](https://qa.fmod.com/u/tlanglois)\
**Post date:** [November 2, 2022, 10:15pm UTC](https://qa.fmod.com/t/maximum-number-of-input-channels/19464/3 "2022-11-02T22:15:58Z")

</div>

Hi,

After some more investigation, I think I can deinterleave all of my files, and store them in an fsb file. That’s probably a better solution. But I could use your help with that.

I’m having some issues with the fsb file. I’m using the FSBank application (on macos). I load a bunch of mono wav files, then build an fsb file. Then in my FMOD code, I load the file with a sequence of calls like:

createSound (using FMOD\_CREATESAMPLE)  
getSubSound  
lock / unlock on the sub sound

If the fsb is created in “PCM” or “Vorbis” format, everything works correctly.

If the fsb is created in “FADPCM” format, then the length that the subsound reports is not what I’m expecting. Each input wav file has 200 samples. In “PCM” and “Vorbis” formats, the subsound reports a length of 200 (with FMOD\_TIMEUNIT\_PCM). In “FADPCM” the subsound reports a length of 256. Is FADPCM changing the sample rate? The “Optimize sample rate” checkbox is not selected in FSBank (that checkbox actually doesn’t seem to make a difference in the output).

Thanks!

---

<div class="post-metadata">

**Author:** ![tlanglois](https://avatars.discourse-cdn.com/v4/letter/t/a88e57/32.png) [@tlanglois](https://qa.fmod.com/u/tlanglois)\
**Post date:** [November 2, 2022, 10:25pm UTC](https://qa.fmod.com/t/maximum-number-of-input-channels/19464/4 "2022-11-02T22:25:37Z")

</div>

Hmm it seems that FADPCM might just be padding the data with 0’s.

---

<div class="post-metadata">

**Author:** ![Connor\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/connor_fmod/32/3685_2.png) [@Connor\_FMOD](https://qa.fmod.com/u/Connor_FMOD)\
**Post date:** [November 8, 2022, 10:14pm UTC](https://qa.fmod.com/t/maximum-number-of-input-channels/19464/5 "2022-11-08T22:14:00Z")

</div>

Hi,

Apologies for the long response.

Could I get a code snipped of what you are testing?
