Volume Delay Function In C