资源简介
从别人那down下来的, 具体地址忘记了,那个java文件是jar的源码,我手贱给反编译出来的...
代码片段和文件信息
// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space
// Source File Name: FLameUtils.java
package com.pocketdigi.utils;
public class FLameUtils
{
private int numChannels;
private int sampleRate;
private int bitRate;
private native void initEncoder(int i int j int k int l int i1);
private native void destroyEncoder();
private native int encodeFile(String s String s1);
public int getNumChannels()
{
return numChannels;
}
public void setNumChannels(int numChannels)
{
this.numChannels = numChannels;
}
public int getSampleRate()
{
return sampleRate;
}
public void setSampleRate(int sampleRate)
{
this.sampleRate = sampleRate;
}
public int getBitRate()
{
return bitRate;
}
public void setBitRate(int bitRate)
{
this.bitRate = bitRate;
}
public FLameUtils()
{
numChannels = 1;
sampleRate = 16000;
bitRate = 96;
}
public FLameUtils(int numChannels int sampleRate int bitRate)
{
this.numChannels = 1;
this.sampleRate = 16000;
this.bitRate = 96;
this.numChannels = numChannels;
this.sampleRate = sampleRate;
this.bitRate = bitRate;
}
public boolean raw2mp3(String source String destination)
{
initEncoder(numChannels sampleRate bitRate 1 2);
int result = encodeFile(source destination);
destroyEncoder();
return result == 0;
}
static
{
System.loadLibrary(“mp3lame“);
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2014-05-15 21:17 lame音频格式转换\
目录 0 2014-05-15 21:17 lame音频格式转换\armeabi\
文件 156904 2013-04-17 17:54 lame音频格式转换\armeabi\libmp3lame.so
文件 1147 2013-04-17 17:54 lame音频格式转换\flame.jar
文件 1580 2014-05-15 19:59 lame音频格式转换\FLameUtils.java
评论
共有 条评论