title: MP3 File Not Playing On Button Select
body: <p>For simplicity, assume this View says alphabet letters in button when you click on said button.</p>
  
  <p>I have been attempting to play the audio files associated with each button, but the files never play. The buttons, individually, are never given outlets, but they are all connected to the function on Touch Up Inside. </p>
  
  <pre><code>class UIAlphabetController: UIViewController, AVAudioPlayerDelegate{
     @IBAction func PlaySound(Sender: UIButton) {
        let soundname:String = Sender.currentTitle!
        var player: AVAudioPlayer?
  
        let url = Bundle.main.url(forResource: soundname, withExtension: "mp3")
  
        do {
           player = try AVAudioPlayer(contentsOf: url!)
           guard let player = player else { return }
  
           player.prepareToPlay()
           player.play()
        } catch let error { print(error.localizedDescription) }
     }
  }
  </code></pre>
  
  <p>Since I have had this problem, the <code>AQDefaultDevice (188): skipping input stream 0 0 0x0</code> message has been coming up. On testing with breakpoints, both <code>soundname</code> and <code>url</code> have expected values.</p>
  
  <p>Does anybody have any idea as to how to fix this?</p>