MCPcopy Create free account
hub / github.com/codecombat/codecombat / playVoiceOver

Function playVoiceOver

app/core/store/modules/voiceOver.js:60–64  ·  view source on GitHub ↗

* Plays Voice Over, fading out other voices if they are speaking.

({ dispatch }, soundIdPromise)

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls 1

dispatchFunction · 0.85

Tested by

no test coverage detected