# Class: sound

sound resources

## Hierarchy

    o-+ resource
      o-+ sound

## Interfaces:

- hashid

## Methods:

### Method overview:

- defaultpath
- getrestype
- load
- play

defaultpath ([string])
  returns: ([string])
  returns or sets the default resource path. Luxinia will search in those when resources are not found.
getrestype ()
  returns: (int restype)
  returns the resource type as int value, useful for resdata or reschunk functions
load (string filename)
  returns: (Sound snd)
  adds a soundfile to loaded resources
play (Sound snd)
  returns: (boolean)
  plays a soundfile. Returns true if it plays the sound.

## Inherited Methods:

### From resource

condition, getresname, getresshortname