これは私の現在のコードです
void playSound(NSString* myString) {
    CFBundleRef mainBundle = CFBundleGetMainBundle();
    NSString *string = myString;
    CFURLRef soundFileURLRef;
    soundFileURLRef = CFBundleCopyResourceURL(mainBundle, 
                        (__bridge CFStringRef) string, CFSTR ("wav"), NULL);
    UInt32 soundID;
    AudioServicesCreateSystemSoundID(soundFileURLRef, &soundID);
    AudioServicesPlaySystemSound(soundID);
}
動作しますが、デバイスの音量を変更したり、ミュート スイッチでミュートしたりすることはできません。これらの機能を有効にする最も簡単な方法は何ですか? ありがとう。