File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
editor/standalone/browser
platform/audioCues/browser Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1058,7 +1058,7 @@ class StandaloneAudioService implements IAudioCueService {
1058
1058
playAudioCueLoop ( cue : AudioCue ) : IDisposable {
1059
1059
return toDisposable ( ( ) => { } ) ;
1060
1060
}
1061
- playRandomAudioCue ( groupId : AudioCueGroupId , allowManyInParallel ?: boolean | undefined ) : void | IDisposable {
1061
+ playRandomAudioCue ( groupId : AudioCueGroupId , allowManyInParallel ?: boolean | undefined ) : void {
1062
1062
}
1063
1063
}
1064
1064
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ export interface IAudioCueService {
27
27
28
28
playSound ( cue : Sound , allowManyInParallel ?: boolean ) : Promise < void > ;
29
29
playAudioCueLoop ( cue : AudioCue ) : IDisposable ;
30
- playRandomAudioCue ( groupId : AudioCueGroupId , allowManyInParallel ?: boolean ) : IDisposable | void ;
30
+ playRandomAudioCue ( groupId : AudioCueGroupId , allowManyInParallel ?: boolean ) : void ;
31
31
}
32
32
33
33
export class AudioCueService extends Disposable implements IAudioCueService {
@@ -57,7 +57,7 @@ export class AudioCueService extends Disposable implements IAudioCueService {
57
57
await Promise . all ( Array . from ( sounds ) . map ( sound => this . playSound ( sound , true ) ) ) ;
58
58
}
59
59
60
- public playRandomAudioCue ( groupId : AudioCueGroupId , allowManyInParallel ?: boolean ) : void | IDisposable {
60
+ public playRandomAudioCue ( groupId : AudioCueGroupId , allowManyInParallel ?: boolean ) : void {
61
61
const cues = AudioCue . allAudioCues . filter ( cue => cue . groupId === groupId ) ;
62
62
const index = Math . floor ( Math . random ( ) * cues . length ) ;
63
63
this . playAudioCue ( cues [ index ] , allowManyInParallel ) ;
You can’t perform that action at this time.
0 commit comments