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

Function addSoundToTrack

app/core/store/modules/audio.js:31–38  ·  view source on GitHub ↗
(state, { trackName, soundId, sound })

Source from the content-addressed store, hash-verified

29
30 mutations: {
31 addSoundToTrack (state, { trackName, soundId, sound }) {
32 const track = state.tracks[trackName]
33 if (!track) {
34 throw new Error('Invalid track specified')
35 }
36
37 track.set(soundId, sound)
38 },
39
40 removeSound (state, soundId) {
41 for (const track of Object.keys(state.tracks)) {

Callers

nothing calls this directly

Calls 1

setMethod · 0.45

Tested by

no test coverage detected