Class Sound
Settings for one sound.
[DataContract(Namespace = "http://schemas.datacontract.org/2004/07/Acuit.Pinpoint.Server.Business")]
public class Sound
- Inheritance
-
Sound
- Inherited Members
Constructors
Sound(string, byte[]?)
Initializes a new instance of the Sound class.
public Sound(string name, byte[]? soundData)
Parameters
namestringThe sound name.
soundDatabyte[]The sound wave data, or null if the sound data is not available.
Exceptions
- ArgumentNullException
nameis null.
Properties
Loop
Gets or sets whether the sound should be looped when played.
[DataMember]
public bool Loop { get; set; }
Property Value
Name
Gets the sound name.
[DataMember]
public string Name { get; }
Property Value
SoundData
Gets the sound wave data, or null if the sound data is not available (e.g., the configured file does not exist).
[DataMember]
public byte[]? SoundData { get; }
Property Value
- byte[]