The nrf5340 audio application's TX function of Gateway

Hello

I have implemented the stereo function to the nrf5340 audio application on SDK V2.6.0. i can send stereo audio signal to both of the two headset at the same time or one of them.

But i also have some questions and problems want to figure out.

I found that when i enable the "CONFIG_STREAM_BIDIRECTIONAL", both "frequency" of the "Lc3 codec config for sink" and "Lc3 codec config for source" will be set to 24K, "Octets per frame" will be set to 48000, but if i disable the "CONFIG_STREAM_BIDIRECTIONAL", there is only left "Lc3 codec config for sink", and the frequency will be set to 48K, and the "Octets per frame" will be set to 96000. When the frequency is 24K, the stereo signal data size is 120, when the frequency is 48K, the stereo signal data size is 240.

I guess that resources are automatically allocated here, and after enabling "CONFIG_STREAM_BIDIRECTIONAL" function, it will cause half resources to be used to receive headset signals. Is my guess correct?

But when i want to implement the function that headset can send stereo audio signal to gateway, although it works, because i have to enable the "CONFIG_STREAM_BIDIRECTIONAL", which cause the frequency of lc3 codec config can only up to 24K, that means i can not receive the normal audio signal on the gateway, because the frequency what i want at least up to 48K. Because i want to transmit the music signal not only the mic signal. I have tried to force it to 48K, but the data size still only allocated 120 instead of the 240 I needed.

So i try to disable the TX function of gateway, because i guess maybe if i can only enable the RX function of gateway, the all resources can allocated to it, and I have put in a lot of effort, but there still some problems.

So do you have some official ways to disable the TX function of Gateway?

And i have to say this is our product's user scenarios, so i have to do this work.

Thank you very much and looking forward to your reply!

Parents Reply Children
Related