Hello Team,
My goal:
Live audio streaming over BLE
What I have done:
I have interfaced SGTL5000 with NRF52832 and I follow this link.
github.com/.../nRF52-teensy-sgtl5000-audio
and loopback [Microphone to earphone] is perfectly working!
problem:
I want to receive I2S data from SGTL5000 so I can store live audio data inside NRF52832.
So for this, I have made the following changes
1) I have added the below function inside the i2s_data_handler function when the loopback event called. [ condition SGTL5000_STATE_RUNNING_LOOPBACK when becomes true ].
2) I have added the below function inside the i2s_data_handler_old function
above 2step modification i have done in drv_sgtl5000.c file.
3)I have also modified in DRV_SGTL5000_EVT_I2S_RX_BUF_RECEIVED event in main.c
4)In main.c I printing all the data as shown below.
As per my understanding, I have made the above changes to receive I2S data from SGTL5000.
Result:
I m getting zeros with some data in RTT viewer [printing data using NRF_LOG_INFO]
I have converted this data into a .wav file and when I played the file then I notice that only noise is recoreded.
So, I don't know these changes are right or wrong.
Please note:
- I have used SDK_15.0.0
-NRF52832 controller
looking forward to your reply!
-Dipak