* Mutes a sound regardless of current mute state. Maintains volume * settings on sound. * * @param id {string} song ID to mute * * @return sound ID that was muted * * @throws {Error} when invalid sound ID specified
({ getters }, id)
| 598 | * @throws {Error} when invalid sound ID specified |
| 599 | */ |
| 600 | muteSound ({ getters }, id) { |
| 601 | const sound = getters.getSoundById(id) |
| 602 | if (!sound) { |
| 603 | throw new Error(`Sound ID does not exist: ${id}`) |
| 604 | } |
| 605 | |
| 606 | sound.mute(true) |
| 607 | return id |
| 608 | }, |
| 609 | |
| 610 | /** |
| 611 | * Unmutes a sound regardless of current mute state. Maintains volume |
nothing calls this directly
no outgoing calls
no test coverage detected