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

Ionic + iOs 13.1.3 #106

Open
aschwersenz opened this issue Nov 23, 2019 · 3 comments
Open

Ionic + iOs 13.1.3 #106

aschwersenz opened this issue Nov 23, 2019 · 3 comments
Labels
analysis needed This is a question or potential bug that needs further analysis. help wanted The great thing about open-source is that everyone can contribute!

Comments

@aschwersenz
Copy link

Hi,

I am trying to do a frequency analysis of the current microphone input using your plugin and ionic. My code looks like this

   const audioContext = new webkitAudioContext();

    audioinput.start({
        audioContext: audioContext, 
        streamToWebAudio: true
    });

    const analyser = audioContext.createAnalyser();
    audioinput.connect(analyser);

    const bufferLength = analyser.frequencyBinCount;
    let dataArray = new Uint8Array(bufferLength);

    for (let i = 0; i < 100; i++) {
        analyser.getByteFrequencyData(dataArray);
        console.log(dataArray);
    }

But the array always just contains 0. I read somewhere that there is a bug with 1.0.2, so I reverted to 1.0.1 but to no avail. Any ideas what I am doing wrong?

Thanks!

@edimuj edimuj added analysis needed This is a question or potential bug that needs further analysis. help wanted The great thing about open-source is that everyone can contribute! labels Nov 27, 2019
@nth-chile
Copy link

+1

@numerized
Copy link

Same here, I had to go back to 1.0.1

@ipostu
Copy link

ipostu commented Nov 9, 2022

I had a similar issue related to this, the problem in my case was that I was also using getUserMedia to get microphone data and presumably there was a race condition for the same hardware resource

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analysis needed This is a question or potential bug that needs further analysis. help wanted The great thing about open-source is that everyone can contribute!
Projects
None yet
Development

No branches or pull requests

5 participants