You have posted in the wrong section so I'm not sure if you refer to a microcontroller but assuming that you do there should be an interrupt you can use that is triggered when the fifo is empty so you add more data and there is a also a flag that you can check continuously in a loop and add data when it's set.