-// AudioPlayerSwift.swift
+// AudioPlayer.swift
 //
 // Copyright (c) 2016 Tom Baranes
 //

        }

        let success = [ AudioPlayer.SoundDidFinishPlayingSuccessfully: flag ]
        NotificationCenter.default.post(name: AudioPlayer.SoundDidFinishPlayingNotification, object: self, userInfo: success)
    }

}

    case fileExtension, fileNotFound
}

extension NSNotification.Name {
    
    public static let SoundDidFinishPlayingNotification : Notification.Name = Notification.Name.init("SoundDidFinishPlayingNotification")

}
public class AudioPlayer: NSObject {

    public static let SoundDidFinishPlayingSuccessfully = "success"
    public typealias SoundDidFinishCompletion = (_ didFinish: Bool) -> Void

