i have included several .aiff sound files to my app's resources, and they are simply called though out different classes in different action methods simply by writing something like this:
they all play fine, but what i don't understand is that the first sound that is played always lags the IBAction it's apart of the first time that action executes... all sounds played afterward with other methods are played on time with out any lag for the IBAction, it's just the very first sound the app plays lags it's action, no matter which sound/action it is...
why is this happening?
Code:
[[NSSound soundNamed:@"mySound.aif"] play];
they all play fine, but what i don't understand is that the first sound that is played always lags the IBAction it's apart of the first time that action executes... all sounds played afterward with other methods are played on time with out any lag for the IBAction, it's just the very first sound the app plays lags it's action, no matter which sound/action it is...
why is this happening?