# Why can WebAudioSoundManager have duplicate keys?

**URL:** <https://phaser.discourse.group/t/why-can-webaudiosoundmanager-have-duplicate-keys/12218>\
**Category:** Phaser 3\
**Created:** [August 26, 2022, 8:32am UTC](https://phaser.discourse.group/t/why-can-webaudiosoundmanager-have-duplicate-keys/12218 "2022-08-26T08:32:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![orjan](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/orjan/32/4854_2.png) [@orjan](https://phaser.discourse.group/u/orjan)\
**Post date:** [August 26, 2022, 8:32am UTC](https://phaser.discourse.group/t/why-can-webaudiosoundmanager-have-duplicate-keys/12218/1 "2022-08-26T08:32:12Z")

</div>

What is the reason WebAudioSoundManager can have multiple sounds with the same keys? I would have expected it to work more like TextureManager.

```javascript
this.sound.add("key");
this.sound.add("key");
console.log(this.sound.sounds.length) // 2

```

---

<div class="post-metadata">

**Author:** ![samme](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/samme/32/5275_2.png) [@samme](https://phaser.discourse.group/u/samme)\
**Post date:** [August 26, 2022, 3:19pm UTC](https://phaser.discourse.group/t/why-can-webaudiosoundmanager-have-duplicate-keys/12218/2 "2022-08-26T15:19:21Z")

</div>

The sounds in the audio cache (`this.cache.audio`) are unique. But the Sound Manager isn’t a cache, it’s more like a player, and sounds added by `sound.add()` are like tracks. You can play overlapping tracks with the same key (source).
