Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with the flash fallback (using IE11) #11

Open
amitkanfer opened this issue Aug 30, 2016 · 0 comments
Open

Problem with the flash fallback (using IE11) #11

amitkanfer opened this issue Aug 30, 2016 · 0 comments

Comments

@amitkanfer
Copy link

amitkanfer commented Aug 30, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant