* Fades all sounds and stops those sounds after fading. Takes the same * options as fadeAll and stopAll * * @return Array of sound IDs that were faded and stopped
({ dispatch, state }, opts)
| 634 | * @return Array of sound IDs that were faded and stopped |
| 635 | */ |
| 636 | async fadeAndStopAll ({ dispatch, state }, opts) { |
| 637 | const fades = Object.keys(state.tracks) |
| 638 | .map(track => dispatch('fadeAndStopTrack', { ...opts, track })) |
| 639 | |
| 640 | const ids = await Promise.all(fades) |
| 641 | return ids.flat() |
| 642 | }, |
| 643 | |
| 644 | /** |
| 645 | * Fades all sounds on a track and stops those sounds after fades are complete |
nothing calls this directly
no test coverage detected