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

Playback Breaks #62

Open
mauta-ii-mauta opened this issue Mar 19, 2019 · 0 comments
Open

Playback Breaks #62

mauta-ii-mauta opened this issue Mar 19, 2019 · 0 comments

Comments

@mauta-ii-mauta
Copy link

mauta-ii-mauta commented Mar 19, 2019

Hi, I'm using v0.7.5. It generally works well but atleast once or twice as media is playing back, the sound glitches/breaks/clips temporarily then goes back to normal after some seconds. Is there a way to fix this? my code:
`
options |= OpenSLMediaPlayerContext.OPTION_USE_BASSBOOST;
options |= OpenSLMediaPlayerContext.OPTION_USE_VIRTUALIZER;
options |= OpenSLMediaPlayerContext.OPTION_USE_HQ_EQUALIZER;
options |= OpenSLMediaPlayerContext.OPTION_USE_PREAMP;
options |= OpenSLMediaPlayerContext.OPTION_USE_HQ_VISUALIZER;
options |= OpenSLMediaPlayerContext.RESAMPLER_QUALITY_HIGH;

    params = new OpenSLMediaPlayerContext.Parameters();
    params.useLowLatencyIfAvailable = true;
    params.streamType = AudioManager.STREAM_MUSIC;
    params.options = options;

    playerFactory= new HybridMediaPlayerFactory(this, params) {
        @Override
        protected int getMediaPlayerOptions () {
            return 0;
        }
    };
    mPlayer= playerFactory.createMediaPlayer();`
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