You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

sounds.js 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import {
  2. OUTGOING_CALL_EXPIRED_SOUND_ID,
  3. OUTGOING_CALL_REJECTED_SOUND_ID,
  4. OUTGOING_CALL_RINGING_SOUND_ID,
  5. OUTGOING_CALL_START_SOUND_ID
  6. } from './constants';
  7. /**
  8. * Maps the sounds IDs with the filenames sounds associated with them.
  9. *
  10. * @type {Map<string, string>}
  11. */
  12. export const sounds = new Map([
  13. /**
  14. * The name of the sound file which will be played when outgoing call is
  15. * expired.
  16. */
  17. [ OUTGOING_CALL_EXPIRED_SOUND_ID, { file: 'rejected.wav' } ],
  18. /**
  19. * The name of the sound file which will be played when outgoing call is
  20. * rejected.
  21. */
  22. [ OUTGOING_CALL_REJECTED_SOUND_ID, { file: 'rejected.wav' } ],
  23. /**
  24. * The name of the sound file which will be played when the status of an
  25. * outgoing call is ringing.
  26. */
  27. [
  28. OUTGOING_CALL_RINGING_SOUND_ID,
  29. {
  30. file: 'outgoingRinging.wav',
  31. options: { loop: true }
  32. }
  33. ],
  34. /**
  35. * The name of the sound file which will be played when outgoing call is
  36. * started.
  37. */
  38. [ OUTGOING_CALL_START_SOUND_ID, { file: 'outgoingStart.wav' } ]
  39. ]);