SA
I have a problem when using the ADC/DAC when dealing with different sizes,
Foe rexample we do this experiment:
-Input a song to the kit line in port & the ADC convert it to samples in to the buffer_rx (it's size=50 in our experiment)
& we equate the buffer_tx (it's size=50) with the buffer_rx then we convert the data in buffer_tx again using the DAC to be in analog form
This analog signal is transmitted via an audio cable to another kit & do exactly the reverse that we do in the 1st kit (ADC the equate the 2 buffers (both of size=50)) then DAC & listen to the signal from line out of the second kit.
This experiment is ok & works good
-This's the problem:
-Input a song to the kit line in port & the ADC convert it to samples in to the buffer_rx (it's size=50 in our experiment)
& we equate the buffer_tx (it's size=100) in this way: buffer_tx={buffer_rx[0],0,buffer_rx[1],0,.................}
then we convert the data in buffer_tx again using the DAC to be in analog form
This analog signal is transmitted via an audio cable to another kit which has (buffer_rx size=100 & buffer_tx =50) DAC the we equate the buffer_tx with the buffer_rx in this manner:
buffer_tx[0]=buffer_rx[0] buffer_tx[1]=buffer_rx[2] buffer_tx[2]=buffer_rx[4] ................
then DAC then we listen to the analog signal via line out of the second kit
Why this exp doesn't work?
In general we have a problem when buffer_tx size is not equal to the buffer_rx
Thanks alot