Code Monkey home page Code Monkey logo

horizon's People

Contributors

cool04ek avatar mariiahalkina avatar severianremi avatar warko-san avatar yala-kr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

horizon's Issues

Usage in emulator

Hey,

Thanks for all of your hard work on this fantastic library. I've had issues getting the library to run on the emulator due to detection of the device's open gl version.

    private void initView(GLSurfaceView glSurfaceView, @ColorInt int backgroundColor) {
        // check if the system supports opengl es 2.0.
        Context context = glSurfaceView.getContext();
        final ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);
        final ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo();
        final boolean supportsEs2 = configurationInfo.reqGlEsVersion >= 0x20000;

        if (supportsEs2) {
            // Request an OpenGL ES 2.0 compatible context.
            glSurfaceView.setEGLContextClientVersion(2);

            // Set the renderer to our demo renderer, defined below.
            mRenderer = new BezierRenderer(glSurfaceView, backgroundColor);
            glSurfaceView.setRenderer(mRenderer);
            glSurfaceView.setRenderMode(GLSurfaceView.RENDERMODE_CONTINUOUSLY);
        } else {
            throw new UnsupportedOperationException();
        }
    }

The line final boolean supportsEs2 = configurationInfo.reqGlEsVersion >= 0x20000; always returns false and it appears that my emulator thinks that its opengl version is 0.0. Is this just a limitation of testing libraries dependent on opengl in general, or is there something I can do to make this work properly?

So far, I've gone into the emulator's settings and set OpenGL ES Render to Desktop native OpenGL and OpenGL ES API Level to Host Maximum.

fragment

when horizon widget added in fragment,when fragment changed ,this view cannot be show

Sample App doesn't work

I downloaded the sample from play store. My device is an Asus Zenfone 2 . Visualizer does not work , I'm not sure how to describe the problem but , it has like only 2-3 fraps per 10 second.

Rendering bug

Hello.
I installed the demo from google play and found that rendering works improperly.

I recorder video with this bug:
https://youtu.be/AST-72yiOsw

Device: Xiaomi Redmi Note 3
OS: Android 5.0.2
CPU: Mediatek MT6795 Helio X10
GPU: PowerVR G6200

Notify, if you want me to provide additional information.

Thanks.

Cannot sync gradle when dependency is added

When I add the dependency compile 'com.yalantis:eqwaves:1.0.1' to my gradle the sync process ends with the error: "manifest merger failed with multiple errors, see logs" with no further explanation on the logs.

How can we use this with Recorded audio

I tried my luck with Visualizer and sending the byte[] data from Visualizer.setDataCaptureListener but the vizualization is not syncronized.

I tried both Waveformdata and FFTData

Horizon does not work when the phone is playing music

Hi, @Yalantis guys! Nice work!

However, if turn on Horizon and music player is playing in the background, the wave is not responding. Somehow it ignores the sound that comes out of the same phone.

PS:
I'm trying to build a Karaoke app to record the sounds while playing a karaoke beat simultaneously from the speaker of my phone. The resulted audio file has the karaoke beat part too loud. Is there any way your Lib can help solve this problem by controlling the beat part volume properly?
Thanks a lot!

Support for BufferedInputStream

Does Horizon support sound recorded with MediaRecorder (separate activity) and then loaded in a fragment using BufferedInputStream from a file?

This is how I load it in but I get weird results, it initializes the wave and then the wave disappears after a second.

                    int size = (int) audio_file.length();
                    byte[] bytes = new byte[size];
                    BufferedInputStream buf = new BufferedInputStream(new FileInputStream(audio_file));
                    buf.read(bytes, 0, bytes.length);
                    buf.close();


                    if( isRecording){
                        mHorizon.updateView(bytes);
                    }

Any tips would be awesome!

Can't add library to project

Hi, I am trying to add the library to the project ( compile 'com.yalantis:eqwaves:1.0.0' )
But android studio can't resolve it.

Rendering not working in Cyanogen 12.1

Hi.
I have a LG G2 with Cyanogen 12.1 installed.. The render works by 0.5-1 second and freezes. On my another device, Motorola G2, works fine.
is it a problem with Cyanogen or with the library?

Continuous animation even in a quiet room

I want the wave to respond to human speech. Is there some way it could ignore background noise like the sound of fan or ticking of clock, because it keeps plotting waves always and never comes down to a straight line?

Can't include as a library in Android Studio

I wanted to change the colors of the bezier curves but didn't know how to do it externally, so I tried to add Horizon as a library.

When i sync Gradle i kept getting error, as the variables in mavenpush.gradle weren't initialized (VERSION_NAME, POM_NAME etc)

Usage with short[]

Thank you for your hard work making this excellent library. According to the AudioRecord documentation, reading byte[]s from a buffer is only compatible with ENCODING_PCM_8BIT.

Reads audio data from the audio hardware for recording into a byte array. The format specified in the AudioRecord constructor should be ENCODING_PCM_8BIT to correspond to the data in the array.

https://developer.android.com/reference/android/media/AudioRecord.html#read(byte[], int, int)

I see that in your example you are indeed using reading a byte[] from the AudioRecord buffer, yet you're also specifying ENCODING_PCM_8BIT. Is there any way to use Horizon with a short[], or should we continue to use byte[] and specify ENCODING_PCM_8BIT?

Image on readme not working

The example image/gif on the readme doesn't load and when clicking on it an error message that says:

Invalid upstream response (410)

shows up.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.