@w0nna_dev/lina-widget 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lina-widget.es.js +47 -127
- package/dist/lina-widget.umd.js +4 -4
- package/dist/src/orb/core/SoundManager.d.ts +7 -13
- package/package.json +1 -1
|
@@ -1,31 +1,25 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* SoundManager -
|
|
3
|
-
* Uses Web Audio API for zero-dependency sound synthesis
|
|
2
|
+
* SoundManager - Plays MP3 sound files for call events
|
|
4
3
|
*/
|
|
5
4
|
export interface SoundConfig {
|
|
6
5
|
enabled: boolean;
|
|
7
6
|
volume: number;
|
|
8
7
|
}
|
|
9
8
|
export declare class SoundManager {
|
|
10
|
-
private audioContext;
|
|
11
9
|
private config;
|
|
10
|
+
private connectAudio;
|
|
11
|
+
private disconnectAudio;
|
|
12
12
|
constructor(config?: Partial<SoundConfig>);
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Preload audio files for instant playback
|
|
15
15
|
*/
|
|
16
|
-
private
|
|
16
|
+
private preloadSounds;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
19
|
-
*/
|
|
20
|
-
private createTone;
|
|
21
|
-
/**
|
|
22
|
-
* Play ascending melodic sound for call start
|
|
23
|
-
* C4 → E4 → G4 (C major chord arpeggio)
|
|
18
|
+
* Play connect sound
|
|
24
19
|
*/
|
|
25
20
|
playCallStartSound(): Promise<void>;
|
|
26
21
|
/**
|
|
27
|
-
* Play
|
|
28
|
-
* G4 → E4 → C4 (descending C major arpeggio)
|
|
22
|
+
* Play disconnect sound
|
|
29
23
|
*/
|
|
30
24
|
playCallEndSound(): Promise<void>;
|
|
31
25
|
/**
|