* Plays Voice Over, fading out other voices if they are speaking.
({ dispatch }, soundIdPromise)
| 58 | * Plays Voice Over, fading out other voices if they are speaking. |
| 59 | */ |
| 60 | async playVoiceOver ({ dispatch }, soundIdPromise) { |
| 61 | dispatch('audio/fadeTrack', { to: 0, track: 'voiceOver', duration: 100 }, { root: true }) |
| 62 | const soundId = await soundIdPromise |
| 63 | dispatch('audio/playSound', { preloadedId: soundId, volume: VOICE_OVER_VOLUME }, { root: true }) |
| 64 | } |
| 65 | } |
| 66 | } |
nothing calls this directly
no test coverage detected