Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d8f5008

Browse files
Improve loop count documentation, especially from Android's point of view (zmxv#751)
1 parent acfdbe4 commit d8f5008

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

‎README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ Get system volume | ✓ | ✓ |
4141
Set system volume | | ✓ |
4242
Get/set pan | ✓ | |
4343
Get/set loops | ✓ | ✓ | ✓
44+
Get/set exact loop count | ✓ | |
4445
Get/set current time | ✓ | ✓ | ✓
4546
Set speed | ✓ | ✓ |
4647

‎index.d.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,14 +128,14 @@ declare class Sound {
128128
/**
129129
* Return the loop count of the audio player.
130130
* The default is 0 which means to play the sound once.
131-
* A positive number specifies the number of times to return to the start and play again.
132-
* A negative number indicates an indefinite loop.
131+
* On iOS a positive number specifies the number of times to return to the start and play again, a negative number indicates an indefinite loop.
132+
* On Android any non-zero value indicates an indefinite loop.
133133
*/
134134
getNumberOfLoops(): number
135135

136136
/**
137137
* Set the loop count
138-
* @param value - 0 means to play the sound once. A positive number specifies the number of times to return to the start and play again (iOS only). A negative number indicates an indefinite loop (iOS and Android).
138+
* @param value - iOS: 0 means to play the sound once, a positive number specifies the number of times to return to the start and play again, a negative number indicates an indefinite loop. Android: 0 means to play the sound once, other numbers indicate an indefinite loop.
139139
*/
140140
setNumberOfLoops(value: number): this
141141

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /