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

squareBarVisualizer.setPlayer(0) is not happening #53

Open
fahadammar opened this issue Apr 7, 2023 · 2 comments
Open

squareBarVisualizer.setPlayer(0) is not happening #53

fahadammar opened this issue Apr 7, 2023 · 2 comments

Comments

@fahadammar
Copy link

I want to set the player to 0 so whenever the music is played, the visualizer animation occurs. But it's not happening, my app is crashing.

Crash:
java.lang.RuntimeException: Cannot initialize Visualizer engine, error: -3

Need the solution ASAP !!

Thankyou so much, looking forward to reply's

@marvpaul
Copy link

@marvpaul
Copy link

marvpaul commented Apr 23, 2023

@fahadammar yep, just had the exact same error as you had. I resolved it with asking for the permissions:

 <uses-permission android:name="android.permission.RECORD_AUDIO" />
    <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />

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

2 participants