title: AVAudioPlayer playing Sound with very low volume in iPhone 6 and 6+
body: <p>I am playing a sound using <code>AVAudioPlayer</code>.</p>
  
  <p>The sound volume in iPods (iOS7 &amp; iOS8 both) is good.</p>
  
  <p>But when I play same sound in iPhones the sound is playing with very low volume.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>var audioPlayer: AVAudioPlayer?
  var soundURL:NSURL? = NSURL(fileURLWithPath: NSBundle.mainBundle().pathForResource("sound", ofType: "mp3")!)
  
  audioPlayer = AVAudioPlayer(contentsOfURL: soundURL, error: nil)
  audioPlayer?.prepareToPlay()
  audioPlayer?.volume = 1
  audioPlayer?.play()
  </code></pre>
  
  <p>I've already included <strong>AudioToolbox.framework</strong> library in my project.</p>
  
  <p><strong>How can I improve sound in iPhone6 and 6+ ?</strong></p>
  
  <p><strong>EDIT</strong></p>
  
  <p><strong>Recently i noticed that automatically the sound was increased for couple of seconds,but don't know what's wrong happening.?</strong></p>