Skip to content

Commit aa028d7

Browse files
authored
Document sound property defaults (#16280)
1 parent e6b2d4b commit aa028d7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/dev/core/src/AudioV2/abstractAudio/staticSound.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export interface IStaticSoundOptionsBase {
4040
/** @internal */
4141
export interface IStaticSoundPlayOptionsBase {
4242
/**
43-
* The time to wait before playing the sound, in seconds.
43+
* The time to wait before playing the sound, in seconds. Defaults to `0`.
4444
*/
4545
waitTime: number;
4646
}
@@ -60,7 +60,7 @@ export interface IStaticSoundPlayOptions extends IAbstractSoundPlayOptions, ISta
6060
*/
6161
export interface IStaticSoundStopOptions {
6262
/**
63-
* The time to wait before stopping the sound, in seconds.
63+
* The time to wait before stopping the sound, in seconds. Defaults to `0`.
6464
*/
6565
waitTime: number;
6666
}
@@ -99,7 +99,7 @@ export abstract class StaticSound extends AbstractSound {
9999
}
100100

101101
/**
102-
* The amount of time to play the sound for, in seconds.
102+
* The amount of time to play the sound for, in seconds. Defaults to `0`.
103103
* - If less than or equal to `0`, the sound plays for its full duration.
104104
*/
105105
public get duration(): number {
@@ -135,7 +135,7 @@ export abstract class StaticSound extends AbstractSound {
135135
}
136136

137137
/**
138-
* The pitch of the sound, in cents.
138+
* The pitch of the sound, in cents. Defaults to `0`.
139139
* - Gets combined with {@link playbackRate} to determine the final pitch.
140140
*/
141141
public get pitch(): number {
@@ -147,7 +147,7 @@ export abstract class StaticSound extends AbstractSound {
147147
}
148148

149149
/**
150-
* The playback rate of the sound.
150+
* The playback rate of the sound. Defaults to `1`.
151151
* - Gets combined with {@link pitch} to determine the final playback rate.
152152
*/
153153
public get playbackRate(): number {

packages/dev/core/src/AudioV2/abstractAudio/streamingSound.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export abstract class StreamingSound extends AbstractSound {
5151
}
5252

5353
/**
54-
* The number of instances to preload.
54+
* The number of instances to preload. Defaults to `1`.
5555
*/
5656
public get preloadCount(): number {
5757
return this._options.preloadCount ?? 1;

0 commit comments

Comments
 (0)