Open Rails

SoundProcess.IsSoundSourceOwnedBy Method

[This is preliminary documentation and subject to change.]

Returns whether a particular sound source in the playable sounds is owned by a particular owner.

public bool IsSoundSourceOwnedBy(
   object owner,
   SoundSourceBase source
);

Parameters

owner
The object to which the sound might be owned.
source
The sound source to check.

Return Value

true for a match between owner and source, false otherwise.

See Also

SoundProcess Class | ORTS Namespace