/// <summary> /// Loads a specific sound file into memory. /// </summary> /// <param name="fileName">Path of file.</param> /// <returns>The loaded sound object.</returns> /// <exception cref="Purple.Exceptions.StreamException">If file couldn't be loaded.</exception> /// <exception cref="SoundException">If sound format isn't supported (extension).</exception> public ISampleObject Load(string fileName) { ISampleObject obj = engine.Load(fileName); obj.Channel = this; return(obj); }