Hi @m.anbiyaei,
If you want to modify the number of samples and the size of the BRAM, you will need to modify overlay in Vivado.
The logic that plays the samples is here
Mario