I have been including the quicktime framework in one of my programs. Since installing QuickTime 6.0.2, whenever I compile after cleaning the program, I receive warnings in every class I have. These are the warnings:
/System/Library/Frameworks/QuickTime.framework/Headers/QuickTime.h:20: warning: could not use precompiled header '/System/Library/Frameworks/Carbon.framework/Headers/Carbon-gcc3.p', because:
/System/Library/Frameworks/QuickTime.framework/Headers/QuickTime.h:20: warning: 'CarbonSound/CarbonSound.h' has different date than in precomp
Everything works fine when it runs but having errors everytime is annoying. Also, I am including QuickTime just for this function:
void playSound(void)
{
NSString * soundPath;
NSMovie * movie;
NSUserDefaults * defaults = [NSUserDefaults standardUserDefaults];
float volume = [defaults floatForKey:SoundLevelKey];
soundPath = [[[[NSBundle mainBundle] bundlePath] stringByAppendingPathComponent:@"Contents/Resources/Alert.aiff"] stringByExpandingTildeInPath];
movie = [[NSMovie alloc] initWithURL:[NSURL fileURLWithPath:soundPath] byReference:YES];
if(movie != nil) {
SetMovieVolume([movie QTMovie], volume);
StartMovie([movie QTMovie]);
while (!IsMovieDone([movie QTMovie])) continue;
}
[movie release];
}
This plays a simple beep and allows to set the volume. Perhaps there is a better way to do this because the volume isn't consistent. The is the application is
here. Disregard the terrible graphics and such...Thanks for any help.