资源简介

源代码copy到android项目中,调用MainActivity下的startR即可录音,录完后会转换成了tom猫的声音自动播放。

资源截图

代码片段和文件信息

package com.bbjia.soundtouch;

public class JNISoundTouch {

public native void setSampleRate(int sampleRate);
public native void setChannels(int channel);
public native void setTempoChange(float newTempo);
public native void setPitchSemiTones(int newPitch);
public native void setRateChange(float newRate);

public native void putSamples(short[] samples int len);
public native short[] receiveSamples();

static{
System.loadLibrary(“soundtouch“);
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-05-14 11:04  bbjia\
     目录           0  2018-05-14 11:04  bbjia\soundtouch\
     文件         466  2018-05-14 11:04  bbjia\soundtouch\JNISoundTouch.java
     文件        2011  2018-05-14 11:04  bbjia\soundtouch\ReadingThread.java
     文件        3714  2018-05-14 11:04  bbjia\soundtouch\RecordingThread.java
     文件         647  2018-05-14 11:04  bbjia\soundtouch\Settings.java
     文件        3250  2018-05-14 11:04  bbjia\soundtouch\SoundTouchClient.java
     文件        3258  2018-05-14 11:04  bbjia\soundtouch\SoundTouchThread.java
     文件        1256  2018-05-14 11:04  bbjia\soundtouch\Utils.java
     文件        2441  2018-05-14 11:04  bbjia\soundtouch\WaveHeader.java
     目录           0  2018-05-14 11:04  game\
     目录           0  2018-05-14 11:04  game\talkingtom\
     文件         149  2018-05-14 11:04  game\talkingtom\AndroidJni.java
     文件        3633  2018-05-14 11:04  game\talkingtom\M.java
     文件       10405  2018-05-14 11:04  game\talkingtom\MainActivity.java
     目录           0  2018-05-14 11:07  __MACOSX\
     目录           0  2018-05-14 11:07  __MACOSX\game\
     目录           0  2018-05-14 11:07  __MACOSX\game\talkingtom\
     文件         176  2018-05-14 11:04  __MACOSX\game\talkingtom\._MainActivity.java
     文件        1978  2018-05-14 11:04  game\talkingtom\NbApplication.java
     文件         899  2018-05-14 11:04  game\talkingtom\PayMonth.java
     目录           0  2018-05-14 11:04  kh\
     目录           0  2018-05-14 11:04  kh\record\
     文件        1146  2018-05-14 11:04  kh\record\FileUtil.java
     文件        1962  2018-05-14 11:04  kh\record\MyMediaRecorder.java
     文件         629  2018-05-14 11:04  kh\record\World.java

评论

共有 条评论