Skip to content

Commit 5fadad0

Browse files
authored
Merge pull request #3 from dennisrijsdijk/fix/wait-for-sound
fix: Wait for sound to finish (#2)
2 parents 23e3826 + a196df4 commit 5fadad0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/play-sound.effect.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ interface EffectModel {
2222
file: string;
2323
volume: number;
2424

25-
wait: boolean;
25+
waitForSound: boolean;
2626
loop: boolean;
2727

2828
folder: string;
@@ -180,7 +180,7 @@ const effect: EffectType<EffectModel & OverlayData> = {
180180
renderWindow.webContents.send('playsound', data);
181181
}
182182

183-
if (effect.wait) {
183+
if (effect.waitForSound) {
184184
let internalDuration: any = data.soundDuration;
185185
if (internalDuration == null || internalDuration === 0 || internalDuration === '') {
186186
internalDuration = duration;

0 commit comments

Comments
 (0)