title: AudioServicesPlaySystemSound Volume?
body: <p>I have this code:</p>
  
  <pre><code>-(void)createAndPlaySoundID: (NSString*)name 
  {
      NSString *path = [NSString stringWithFormat: @"%@/%@", [[NSBundle mainBundle] resourcePath], name];
  
      NSURL* filePath = [NSURL fileURLWithPath: path isDirectory: NO];
      SystemSoundID soundID;
      AudioServicesCreateSystemSoundID((__bridge CFURLRef)filePath, &amp;soundID);
  
      AudioServicesPlaySystemSound(soundID);
  }
  </code></pre>
  
  <p>I call this like so:</p>
  
  <pre><code>[self createAndPlaySoundID: @"mySound.caf"];
  </code></pre>
  
  <p>This works great, however I have no control over the volume. I simply want the volume to be controlled by the user using the standard physical volume buttons on their iPad.</p>
  
  <p>If I put this volume down to say 1, it plays, great, but then if I whack the device volume up to max its the same volume.</p>
  
  <p>Any help would be appreciated, handling this, thanks.</p>