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

How to increase the height of the bars #28

Open
chorauoc opened this issue Mar 8, 2020 · 4 comments
Open

How to increase the height of the bars #28

chorauoc opened this issue Mar 8, 2020 · 4 comments

Comments

@chorauoc
Copy link

chorauoc commented Mar 8, 2020

Hi,

Can you tell me how to increase the height of the ColumnarType1Renderer. Becaue in low voice situation animation is not visible at all

Thanks
Asanka

@bogerchan
Copy link
Owner

bogerchan commented Mar 10, 2020

Hi, chorauoc,
Thanks for your feedback, can you show me the code? Maybe I have some advices for you. :D

@buttonpress
Copy link

我也遇到了同样的问题,求解决方法。@bogerchan

@chorauoc
Copy link
Author

Hi

Do you have working sample code for this in java, means I want to use this lib with MediaRecorder in android

NierVisualizerManager visualizerManager = new NierVisualizerManager();

visualizerManager.init(new NierVisualizerManager.NVDataSource() {

// skip some code...

/**
 * Tell the manager about the data sampling interval.
 * @return the data sampling interval which is millisecond of unit.
 */
@Override
public long getDataSamplingInterval() {
    return 0L;
}

/**
 * Tell the manager about the data length of fft data or wave data.
 * @return the data length of fft data or wave data.
 */
@Override
public int getDataLength() {
    return mBuffer.length;
}

/**
 * The manager will fetch fft data by it.
 * @return the fft data, null will be ignored by the manager.
 */
@Nullable
@Override
public byte[] fetchFftData() {
    return null;
}

/**
 * The manager will fetch wave data by it.
 * @return the wave data, null will be ignored by the manager.
 */
@Nullable
@Override
public byte[] fetchWaveData() {
    // skip some code...
    return mBuffer;
}

});

@bogerchan
Copy link
Owner

Hi, folks,
For the first question, I found the loudness of sound will affect the wave values, I don't have a good solution currently, in the most cases I think it should work well.
For the second question, sorry I don't have the sample code, you could refer this https://stackoverflow.com/questions/19025196/how-can-i-show-fft-results-of-that-algorithm

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

3 participants