Based on the error you are most likely defining PlaySoundID1
incorrectly.
You probably have something like:
SystemSoundID *PlaySoundID1;
but what you need is:
SystemSoundID PlaySoundID1; // no asterisk
Your call to AudioServicesCreateSystemSoundID
should be something like:
SystemSoundID usedSoundID;
OSStatus status = AudioServicesCreateSystemSoundID((__bridge CFURLRef)SoundURL1, &usedSoundID);
// check the status and look at usedSoundID as needed
The 2nd parameter is an "out" value so you should not be passing in your PlaySoundID
value.