Essentially, I have background sounds that play through the web audio API, and their playback function looks something like this:
function playSound(buffer) { if (buffer) { var source = appAudioContext.createBufferSource(); source.buffer = buffer; source.connect(appAudioContext.destination); source.start(0); } else { alert("ERROR: playSound has undefined buffer"); } }
When I start recording using the PhoneGap Media API, though (cordova-plugin-media via npm), all my web sounds are muted and I canβt play them even when recording is stopped. Is there a way to get these two APIs to interact well in PhoneGap? I am developing a sound application that will require the versatility of the Web Audio API with native Media API recording features.
source share