/// <summary>Registers a sound and returns a handle to the sound.</summary>
/// <param name="path">The path to the file or folder that contains the sound.</param>
/// /// <param name="radius">The sound radius</param>
/// <param name="handle">Receives a handle to the sound.</param>
/// <returns>Whether loading the sound was successful.</returns>
public override bool RegisterSound(string path, double radius, out OpenBveApi.Sounds.SoundHandle handle)
{
if (System.IO.File.Exists(path) || System.IO.Directory.Exists(path))
{
handle = Sounds.RegisterBuffer(path, radius);
return(true);
}
ReportProblem(OpenBveApi.Hosts.ProblemType.PathNotFound, path);
handle = null;
return(false);
}