summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarco <marcoambrosini@pm.me>2021-12-14 22:17:39 +0100
committermarco <marcoambrosini@pm.me>2021-12-15 16:38:07 +0100
commitde4cc931c007c73b881e9d8a5ba6cdd150ac436f (patch)
treebd62b2b7bfbd216ca0e520e6cc86b4c5b0335ff2
parent9618abc42a717e98f5ecf3eb3c2a9c5cf3b2d4b6 (diff)
Improve talk sounds
Signed-off-by: marco <marcoambrosini@pm.me>
-rw-r--r--img/COPYING7
-rw-r--r--img/join_call.oggbin0 -> 7496 bytes
-rw-r--r--img/leave_call.oggbin0 -> 7746 bytes
-rw-r--r--src/utils/sounds.js6
4 files changed, 10 insertions, 3 deletions
diff --git a/img/COPYING b/img/COPYING
new file mode 100644
index 000000000..fdc21b376
--- /dev/null
+++ b/img/COPYING
@@ -0,0 +1,7 @@
+## join_call.ogg
+@author Marco Ambrosini (marcoambrosini@pm.me)
+@license CC0-1.0
+
+## leave_call.ogg
+@author Marco Ambrosini (marcoambrosini@pm.me)
+@license CC0-1.0
diff --git a/img/join_call.ogg b/img/join_call.ogg
new file mode 100644
index 000000000..635007155
--- /dev/null
+++ b/img/join_call.ogg
Binary files differ
diff --git a/img/leave_call.ogg b/img/leave_call.ogg
new file mode 100644
index 000000000..5e4177cfa
--- /dev/null
+++ b/img/leave_call.ogg
Binary files differ
diff --git a/src/utils/sounds.js b/src/utils/sounds.js
index 2b595eddf..8e0455356 100644
--- a/src/utils/sounds.js
+++ b/src/utils/sounds.js
@@ -22,7 +22,7 @@ import { generateFilePath } from '@nextcloud/router'
import store from '../store'
export const Sounds = {
- BLOCK_SOUND_TIMEOUT: 5000,
+ BLOCK_SOUND_TIMEOUT: 3000,
isInCall: false,
lastPlayedJoin: 0,
@@ -101,7 +101,7 @@ export const Sounds = {
if (playWaitingSound) {
await this.playWaiting()
} else {
- this._playSounceOnce('LibremEmailNotification.ogg')
+ this._playSounceOnce('join_call.wav')
}
},
@@ -132,7 +132,7 @@ export const Sounds = {
}
this.lastPlayedLeave = currentTime
- this._playSounceOnce('LibremTextMessage.ogg')
+ this._playSounceOnce('leave_call.wav')
if (playWaitingSound) {
this.playWaiting()