This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class PcmToWavUtil { | |
/** | |
* @param pcmData pcm原始数据 | |
* @param numChannels 声道设置, mono = 1, stereo = 2 | |
* @param sampleRate 采样频率 | |
* @param bitPerSample 单次数据长度, 例如8bits | |
* @return wav数据 | |
*/ | |
public static byte[] pcmToWav(byte[] pcmData, int numChannels, int sampleRate, int bitPerSample) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.iml | |
.gradle | |
/local.properties | |
/.idea/workspace.xml | |
/.idea/libraries | |
.DS_Store | |
/build | |
/captures | |
.externalNativeBuild |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Mon Jul 27 11:08:22 CST 2015 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Mon Jul 27 11:08:22 CST 2015 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'com.android.library' | |
apply plugin: 'com.github.dcendents.android-maven' | |
apply plugin: 'com.jfrog.bintray' | |
version = "" // 项目的版本名 | |
android { | |
compileSdkVersion 22 | |
buildToolsVersion '22.0.1' | |
defaultConfig { |