This code works for me:
Code:
SystemSoundID train;
AudioServicesCreateSystemSoundID(CFBundleCopyResourceURL(CFBundleGetMainBundle(), CFSTR("train2"), CFSTR("wav"), NULL), &train);
AudioServicesPlaySystemSound(train);
It did take a fair amount of fiddling and googling to get it to work the first time!