File Length

I am trying to burn audio and video CDs with nero api, but i want to check if my files have exceeded the cd length or not, so is there any way to estimate each files length in the vcd and audio cd format.