Sample playback time critical issue

So far the program works kind of, but if I try to go with the music it has a slight 4-5ms delay ( don't know exactly how much it is, but I can feel it ).

I don't know what's causing it, but I'm sure the delay is longer than that. Sound travels at about 1 foot per millisecond so a speaker 5-feet away from your ear is 5mS and that's usually not a problem. You might start to hear/feel a delay at more than 25ms.

[u]MP3 does add a short bit of silence to the beginning and end of the file[/u]. That might be long enough to hear or there might be some additional "processing time" added to that delaty/silence.