e voice function !
*/
public void unloadAllSoundsIn() {
if (mSoundPoolMap.size() > 0) {
for (String key : mSoundPoolMap.keySet()) {
mSoundPool.unload(mSoundPoolMap.get(key));
}
}
mKillSoundQueue.clear();
mSoundPoolMap.clear();
}
/**
* set the speed of soundPool
*
* @param i i<0 means slow i= 0 means normal i>0 means fast
*/
public void setVoiceSpeed(int i) {
if (i > 0) {
rate = 1.2f;
}
else if (i < 0) {
rate = 0.8f;
}
else {
rate = 1.0f;
}
}
/**
* set the delay after one number's sound have played
*
* @param i i<0 means short i= 0 means normal i>0 means long
*/
public void setVoiceDelay(int i) {
if (i > 0) {
seperateTime = 700;
}
else if (i < 0) {
seperateTime = 400;
}
else {
seperateTime = 500;
}
}
public String getLocale() {
return locale;
}
public void setLocale(String locale) {
this.locale = locale;
}
}