You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the module, which is great - thanks alot for the work!
I have an issue using it in IE, while in chrome - the same code works perfect.
this is my code:
The input is received on the wire as a single buffer of floats, RRRRRRLLLLLLLL, sample rate of 44100, raw PCM data, 1024 sampled each time, 2 channels.
So as i said, when using the waapisim in IE - it sounds very bad... any idea what i'm doing wrong?
Thanks alot for your help
The text was updated successfully, but these errors were encountered:
Hi,
I'm using the module, which is great - thanks alot for the work!
I have an issue using it in IE, while in chrome - the same code works perfect.
this is my code:
onMoreData(data) {
var typedArray = new Float32Array(data);
var myArrayBuffer = this.context.createBuffer(2, typedArray.length / 2, 44100);
var channel_1, channel_2;
if (typedArray.slice) {
channel_1 = typedArray.slice(0, typedArray.length / 2);
channel_2 = typedArray.slice(typedArray.length / 2);
} else {
channel_1 = typedArray.subarray(0, typedArray.length / 2);
channel_2 = typedArray.subarray(typedArray.length / 2);
}
myArrayBuffer.getChannelData(0).set(channel_1);
myArrayBuffer.getChannelData(1).set(channel_2);
const source = this.context.createBufferSource();
source.buffer = myArrayBuffer;
source.connect(this.context.destination);
source.start(this.startTime);
}
The input is received on the wire as a single buffer of floats, RRRRRRLLLLLLLL, sample rate of 44100, raw PCM data, 1024 sampled each time, 2 channels.
So as i said, when using the waapisim in IE - it sounds very bad... any idea what i'm doing wrong?
Thanks alot for your help
The text was updated successfully, but these errors were encountered: