Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

WebAudioUtils.js 418B

1234567891011121314
  1. /**
  2. * Adapter that creates AudioContext objects depending on the browser.
  3. *
  4. * @returns {AudioContext} - Return a new AudioContext or undefined if the browser does not support it.
  5. */
  6. export function createAudioContext(options) {
  7. const AudioContextImpl = window.AudioContext || window.webkitAudioContext;
  8. if (!AudioContextImpl) {
  9. return undefined;
  10. }
  11. return new AudioContextImpl(options);
  12. }