| 1 |
import { SoundEffects } from "@mail/core/common/sound_effects_service"; |
| 2 |
import { patch } from "@web/core/utils/patch"; |
| 3 |
|
| 4 |
patch(SoundEffects.prototype, { |
| 5 |
play() { |
| 6 |
this.soundEffects = { |
| 7 |
...this.soundEffects, |
| 8 |
error: { path: "/point_of_sale/static/src/sounds/error" }, |
| 9 |
bell: { path: "/point_of_sale/static/src/sounds/bell" }, |
| 10 |
notification: { path: "/point_of_sale/static/src/sounds/notification" }, |
| 11 |
beep: { path: "/point_of_sale/static/src/sounds/beep" }, |
| 12 |
"order-receive-tone": { |
| 13 |
path: "/point_of_sale/static/src/sounds/order-receive-tone", |
| 14 |
}, |
| 15 |
}; |
| 16 |
super.play(...arguments); |
| 17 |
}, |
| 18 |
}); |