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

Music plays too fast on ubuntu chrome #35

Open
dikkietrom opened this issue Oct 22, 2012 · 6 comments
Open

Music plays too fast on ubuntu chrome #35

dikkietrom opened this issue Oct 22, 2012 · 6 comments

Comments

@dikkietrom
Copy link

Other webaudio demos dont have this problem so it seems to be something in dancer.js

@jsantell
Copy link
Owner

Hmm, guessing it's the sample rate -- what version of Chrome and Ubuntu?

@dikkietrom
Copy link
Author

Hi Jordan,

Chrome Version 21.0.1180.89
Ubuntu
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.1 LTS"

Ubuntu 32 bit version that is. Is there anything I can try out?

Thanks,
Dennis

On Tue, Oct 23, 2012 at 10:56 PM, Jordan Santell
notifications@github.comwrote:

Hmm, guessing it's the sample rate -- what version of Chrome and Ubuntu?


Reply to this email directly or view it on GitHubhttps://github.com//issues/35#issuecomment-9717894.

@jsantell
Copy link
Owner

Great thank you, will look into it!

@dikkietrom
Copy link
Author

for the time being I was doing this and get the same too fast playing thing. But when I remove the first connect the file plays fine and the analyser seems connected also. I dont see analyser used in your code but maybe it gives you a clue somehow.

    var playAudioFile = function (buffer) {
        var source = context.createBufferSource();
        source.buffer = buffer;
        source.connect(context.destination);                   <---------- first connect


        var analyser = context.createAnalyser();
        analyser.fftSize = 2048; // 2048-point FFT
        source.connect(analyser);                                <---------- 2nd connect
        analyser.connect(context.destination);

        source.noteOn(0); // Play sound immediately

    };

@jsantell
Copy link
Owner

No analyser, but there is a javascriptnode which may produce similar weirdness -- doing a large refactor and will definitely scope this out!

@shoofle
Copy link

shoofle commented Apr 29, 2013

I've encountered this problem too - at first I thought I was doing something wrong, but then I compared and found out that it did it in the dancer.js example too.

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

No branches or pull requests

3 participants