in .h:
#import <AudioToolbox/AudioToolbox.h>
@interface ViewController : UIViewController {
SystemSoundID beatAudio;
}
in.m:
//File path already created
AudioServicesCreateSystemSoundID((__bridge CFURLRef)[NSURL fileURLWithPath:path], &(beatAudio));
AudioServicesPlaySystemSound(beatAudio);
The sound is perfect, but when I toggle up and down the volume bar, the volume of this sound is not affected. Any solutions?