yalantis / horizon Goto Github PK
View Code? Open in Web Editor NEWHorizon - Simple visual equaliser for Android
Home Page: https://play.google.com/store/apps/details?id=com.yalantis.horizon
Horizon - Simple visual equaliser for Android
Home Page: https://play.google.com/store/apps/details?id=com.yalantis.horizon
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.
Any idea on how to generate random buffer data to emulate sound ?
when horizon widget added in fragment,when fragment changed ,this view cannot be show
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.
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.
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.
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
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!
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!
Hi,
I'm using 3rd-party audio service in my app, it has a capsuled audio recorder instance, so it conflicts with Horizon, how can I use Horizon for this situation?
Thanks!
I changed the colors of waveform from VerticesDataGenerator and put a background color white/transparent but it doesn't work. It works with gray or any other such variant. How to fix it?
I added the library by adding compile 'com.yalantis:eqwaves:1.0' but cannot import Horizon and hence unable to use library
Hello, i need your help for solving my issue.
i'm really need libyaudio.so for x86_64, is it already available?
Thank you
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.
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?
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?
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)
Is there a way to user the visualiser reacting to a MediaPlayer?
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
?
yeah
As I can't find these source code lol
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.
Hello, i need your help for solving my issue.
i'm really need libyaudio.so for armeabi, is it already available?
Thank you
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.