Interface IAudioClip
An audio clip that can be played multiple times during the game. The audio clip should be loaded from a file using IAudioFactory. You can then set its properties (volume, pitch, panning) which will be used for all sounds played from this clip.
Note that an audio clip is the template for the sound, whereas ISound is the actual playing sound instance.
Inherited Members
Namespace: AGS.API
Assembly: AGS.API.dll
Syntax
public interface IAudioClip : ISoundProperties, ISoundPlayer
Properties
| Improve this Doc View SourceDuration
Gets duration of the sound in seconds.
Declaration
float Duration { get; }
Property Value
Type | Description |
---|---|
System.Single |
ID
A unique identifier for the audio clip.
Declaration
string ID { get; }
Property Value
Type | Description |
---|---|
System.String | The identifier. |