conky9876 / beer

0 stars 0 forks source link

Help #1

Open conky9876 opened 4 years ago

conky9876 commented 4 years ago

i am getting a error contentsof do not match any available overloads

import UIKit import AVFoundation class YelloViewController: UIViewController { var musicEffect: AVAudioPlayer = AVAudioPlayer()

@IBOutlet weak var yellowButtonPresed: UIButton!

override func viewDidLoad() {
    super.viewDidLoad()

    let musicFile = Bundle.main.path(forResource: "See me bleed", ofType: ".mp3")
    do  {
        try musicEffect = AVAudioPlayer(contentsOf: URL, (fileURLWithPath: musicFile!))// error here///
        }
    catch {
        print(error)
        }
conky9876 commented 4 years ago

anyone ??? i'm new to this site