Giter Site home page Giter Site logo

audiowavecanvas's People

Contributors

cokuscz 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

audiowavecanvas's Issues

小米4c上录音有杂音

小米4c上使用这个demo进行录音,录下来的都是杂音,听不清话。我的小米4c是安卓7.0的。另外,放在小米5s上就没问题了,录音比较清楚。

文件夹没有创建

运行会提示
java.io.FileNotFoundException: /storage/emulated/0/record/test.pcm: open failed: ENOENT (No such file or directory)

可能你的文件夹之前创建过... 可是adb删除以后运行看一下

空指针异常

NullPointerException
WaveformView.millisecsToPixels(int)' on a null object reference
播放录制内容,更新waveView的时候

licese reqiurement

Can you please grant a permissive license for your project, such as MIT?

关于getSamplesPerFrame

// Should be removed when the app will use directly the samples instead of the frames.
public int getSamplesPerFrame() {
return 1024; // just a fixed value here...
}
我想知道一下,如果使用自己的PerFrame,需要怎么修改。如果使用这个,我用本地的音频去加载。在ReadFile的时候,下面这部分代码会执行几十万上百万次。
for (i=0; i<mNumFrames; i++){
gain = -1;
for(j=0; j<getSamplesPerFrame(); j++) {
value = 0;
for (int k=0; k<mChannels; k++) {
if (mDecodedSamples.remaining() > 0) {
value += Math.abs(mDecodedSamples.get());
}
}
value /= mChannels;
if (gain < value) {
gain = value;
}
}
mFrameGains[i] = (int)Math.sqrt(gain); // here gain = sqrt(max value of 1st channel)...
mFrameLens[i] = frameLens; // totally not accurate...
mFrameOffsets[i] = (int)(i * (1000 * mAvgBitRate / 8) * // = i * frameLens
((float)getSamplesPerFrame() / mSampleRate));
}

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.