     public static var RepeatAll: AudioPlayerModeMask {
         return self.init(rawValue: 0b100)
     }
+}
+
+
+// MARK: - AudioPlayerError
+
+public enum AudioPlayerError: ErrorType {
+    case MaximumRetryCountHit
+    case FoundationError(NSError?)
 }
 
 

        return true
    case (.WaitingForConnection, .WaitingForConnection):
        return true
    case (.Failed(let e1), .Failed(let e2)):
        return e1 == e2
    default:
        return false
    }

    case Paused
    case Stopped
    case WaitingForConnection
    case Failed(AudioPlayerError)
}

extension AudioPlayerState: Equatable { }
