Genereted sound is still uniform and do not change its frequency playing. Sound only changes when I change HAL_I2S_Transmit_DMA(&hi2s3, (uint16_t *)dataI2S, sample_N3*2);sample_N3*2, here.
As I understand, HAL_I2S_Transmit_DMA(&hi2s3, (uint16_t *)dataI2S, sample_N3*2);I need to change the sample_N here to change frequency but can I do that dynamically during audio generation?