Table of Contents

Class Sound

Namespace
Acuit.Pinpoint.Services.Entities
Assembly
Acuit.Pinpoint.Services.Entities.dll

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

name string

The sound name.

soundData byte[]

The sound wave data, or null if the sound data is not available.

Exceptions

ArgumentNullException

name is null.

Properties

Loop

Gets or sets whether the sound should be looped when played.

[DataMember]
public bool Loop { get; set; }

Property Value

bool

Name

Gets the sound name.

[DataMember]
public string Name { get; }

Property Value

string

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[]