2021-05-27 07:53 AM
how can i store 1 second audio data using audio loop example
2021-06-01 04:24 AM
Hi @Dinakaran Palani ,
if you follow the datapath of the audio signal you will find the audio buffer.
once you find it, you can store it in a long array until you have enough samples to make one second.
hope this helps,
Niccolò
2021-06-01 04:48 AM
Hi @niccolo.ruffini
how frequently should I capture the data from pcm buffer to another buffer
the second one is how should I declare that buffer for storing one-second samples for the sampling rate 16000 for single-channel
if I declare an array of uint16_t[16000] if I do so I am getting excessive use of ram
2021-06-03 01:08 AM
Hi @Dinakaran Palani ,
you should capture data from the buffer every time it is full, otherwise you loose samples.
do you get the error even if you use the malloc?
Niccolò
2021-06-03 03:57 AM
how to do it
2021-06-03 04:48 AM
Hi @Dinakaran Palani ,
you can follow this link to check how to use the malloc function.
hope this helps
Niccolò
2021-06-03 08:48 AM
i tried allocating by using the snippet as shown in the example link I am not able to allocate 16000 memory location
2021-06-04 03:54 AM
Hi @Dinakaran Palani ,
What system are you using?
Niccolò