Comments (7)
Demo 里的录音情况只返回了 wave 波形数据,没有搞 fft ,有些效果是用 fft 数据接口的,在 Demo 里把 fft 的接口适配下就有数据。:)
from nier-visualizer.
@bogerchan 好的,感谢回复 :)
from nier-visualizer.
你好作者,感想提供这个库,关于录音情况没有动画的问题
//没有效果产生
ColumnarType1Renderer
我做了如下修改
NierVisualizerManager
中
fetchWaveData()?.apply {
val waveBuffer = mWaveBuffer ?: return@apply
if (size != waveBuffer.size) {
throw IllegalStateException("NVDataSource must provide correct wave data size as it's getDataLength() says.")
}
System.arraycopy(this, 0, waveBuffer, 0, size)
Log.d("123","updateWaveData")
mRenderer.updateWaveData(waveBuffer)
}
但是获取到的效果似乎是相反的,声音越大,柱状图越低,声音小,柱状图在最大值
请问我该如何处理?
from nier-visualizer.
补充
ColumnarType1Renderer
类型是
override fun getInputDataType() = IRenderer.DataType.WAVE
按照您上述的“描述Demo 里的录音情况只返回了 wave 波形数据”
ColumnarType1Renderer
应该是可以做出动画效果的
from nier-visualizer.
你好作者,感想提供这个库,关于录音情况没有动画的问题
//没有效果产生 ColumnarType1Renderer我做了如下修改
NierVisualizerManager
中fetchWaveData()?.apply { val waveBuffer = mWaveBuffer ?: return@apply if (size != waveBuffer.size) { throw IllegalStateException("NVDataSource must provide correct wave data size as it's getDataLength() says.") } System.arraycopy(this, 0, waveBuffer, 0, size) Log.d("123","updateWaveData") mRenderer.updateWaveData(waveBuffer) }
但是获取到的效果似乎是相反的,声音越大,柱状图越低,声音小,柱状图在最大值
请问我该如何处理?
感谢老铁对该项目的支持,这个问题是个 Bug,我已经在 v0.1.3
版本上修复好啦,重新 Pull 下 master
分支应该就能看到修复后的代码,如有问题请继续与我联系,:D,具体修复代码:4d7bded
from nier-visualizer.
你好作者,感想提供这个库,关于录音情况没有动画的问题
//没有效果产生 ColumnarType1Renderer我做了如下修改
NierVisualizerManager
中fetchWaveData()?.apply { val waveBuffer = mWaveBuffer ?: return@apply if (size != waveBuffer.size) { throw IllegalStateException("NVDataSource must provide correct wave data size as it's getDataLength() says.") } System.arraycopy(this, 0, waveBuffer, 0, size) Log.d("123","updateWaveData") mRenderer.updateWaveData(waveBuffer) }
但是获取到的效果似乎是相反的,声音越大,柱状图越低,声音小,柱状图在最大值
请问我该如何处理?感谢老铁对该项目的支持,这个问题是个 Bug,我已经在
v0.1.3
版本上修复好啦,重新 Pull 下master
分支应该就能看到修复后的代码,如有问题请继续与我联系,:D,具体修复代码:4d7bded
太棒了,亲测有效,感想作者
from nier-visualizer.
客气。:D
from nier-visualizer.
Related Issues (20)
- 网易云音乐可视化风格 HOT 1
- How to increase the height of the bars HOT 4
- Can it draw in a item of recycle view HOT 1
- Visualizer not working properly for AudioFormat.ENCODING_PCM_16BIT configuration HOT 5
- 有没有简单的改变样式颜色的方法,我从构造方法下手有点繁琐.... HOT 1
- How to use it while Recording Audio? HOT 3
- java.lang.RuntimeException: Cannot initialize Visualizer engine HOT 2
- Output mp4 HOT 1
- sometime wrong HOT 11
- change background to transparent HOT 1
- change visualizer color HOT 2
- How to reset the visualizer after playback HOT 4
- Cannot initialize Visualizer engine, error: -3 HOT 1
- how to make fixed start-end pint in LineRenderer HOT 1
- can it be applied to radio streaming? HOT 3
- 你好 可以提供一份java的demo吗 HOT 1
- Export to MP4 file HOT 1
- How to set gradient ColumnarType1Renderer in custom renderer? HOT 2
- How I can generate a video HOT 1
- The Visualizer is not working with Recording an audio
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nier-visualizer.