Hi NRF team,
I am working on one project. I have used 2 PDM Microphones (MMICT5838-00-012). And I have used Zephyr RTOS for development.
I have used the LC3 encoding and decoding method in my application. Encoding and decoding both are working as expected in Mono mode.
But it is not working in stereo mode.
Stereo mode Mic configuration: Sample rate: 16000Hz, Bit depth of 1 sample: 16bits, audio frame duration: 10000us, bitrate: 32000bps, total number of channels: 2 channel(s)
I am getting an error from the LC3EncodeSessionOpen API. I am getting an LC3_RESULT_INSUFFICIENT_RESOURCES error code.
My observation is that once firmware calls LC3EncodeSessionOpen the second time for the second channel, it will trigger the LC3_RESULT_INSUFFICIENT_RESOURCES error code.
My project configurations:
What could be the probable reason for this error? I have allocated a huge stack and heap in the memory and also tweaked some parameters like sampling rate and bit depth. But still, I am facing the same issue.