when loading a sample, initialize numFrames with 0 in case the sample file cannot be found.