SpyDroid源码分析系列6:AACStream之成员分析

位置:net.majorkernelpanic.streaming.audio文件夹下。

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

SpyDroid源码分析系列6:AACStream之成员分析

下面开始分析各个成员的含义:

public final static String TAG = "AACStream";
 //设置类的tag

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/** MPEG-4 Audio Object Types supported by ADTS. **/
 private static final String[] AUDIO_OBJECT_TYPES =
 {
  "NULL",         // 0
  "AAC Main",        // 1
  "AAC LC (Low Complexity)",    // 2
  "AAC SSR (Scalable Sample Rate)", // 3
  "AAC LTP (Long Term Prediction)"  // 4 
 };
 //设置字符串数组

~~~~~~~~~~~~~~~~~~~~~~~~~~~

/** There are 13 supported frequencies by ADTS. **/
 public static final int[] AUDIO_SAMPLING_RATES =
 {
  96000, // 0
  88200, // 1
  64000, // 2
  48000, // 3
  44100, // 4
  32000, // 5
  24000, // 6
  22050, // 7
  16000, // 8
  12000, // 9
  11025, // 10
  8000,  // 11
  7350,  // 12
  -1,   // 13
  -1,   // 14
  -1,   // 15
 };
 //设置采样频率数组

~~~~~~~~~~~~~~~~~~~~~~~~~~~

private int mActualSamplingRate;
 private int mProfile;
 private int mSamplingRateIndex;
 private int mChannel;
 private int mConfig;
 private SharedPreferences mSettings = null;
 private AudioRecord mAudioRecord = null;
 private Thread mThread = null;
 //设置若干变量

 

你可能感兴趣的:(SpyDroid,AACStream)