N
N
nuclear_kote2020-02-25 03:37:29
JavaScript
nuclear_kote, 2020-02-25 03:37:29

How to make sound go through loud speaker in AudioContext?

function playSound(buffer, playTime) {
      var source = audioContext.createBufferSource();
      source.buffer = buffer; 
      source.start(playTime);
      source.connect(audioContext.destination); 
    }

navigator.mediaDevices.enumerateDevices() shows the only audiooutput on the phone, the
sound comes from the earpiece

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question