Sound

class Sound

An object representing a auditory sound.

  • The sound’s name.

    Declaration

    var name: String { get }
  • The name of the audio file containing the audio data.

    Declaration

    var fileName: String { get }
  • The path to the containing the audio file.

    Declaration

    var path: String { get }
  • The extension of the audio file.

    Declaration

    var type: String { get }
  • The object’s description

    Declaration

    var description: String { get }
  • Compares two values for equality.

    The equals function is invoked using infix notation as in the following code snippet: lhs == rhs.

    Declaration

    func equals(_ lhs: Sound) -> Bool

    Parameters

    lhs

    A value.

    rhs

    Another value.

    Return Value

    true if the lhs and rhs are equal, false otherwise.