shubhambans
Lurker
Hello,
I am writing some application for observing BassBooster effect.
But I am facing some problem in observingthe effect in my samsung galaxyS 2.3 version.
Can anybody post some sample code, that how to properly use BassBooster ApI's.
====================================================
Code : which I am currently have.
try {
mBassBoost = new BassBoost(0, mMediaPlayer.getAudioSessionId());
} catch (IllegalArgumentException e) {
Log.e(TAG, "getBassBoost() BassBoost not found exception: " + e);
} catch (UnsupportedOperationException e) {
Log.e(TAG, "getBassBoost() Effect library not loaded exception: " + e);
}
bar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
Log.e(TAG,"I am inside onProgressChanged = " + progress);
mBassBoost.setStrength((short) progress);
}
public void onStartTrackingTouch(SeekBar seekBar) {
}
public void onStopTrackingTouch(SeekBar seekBar) {
}
});
I am writing some application for observing BassBooster effect.
But I am facing some problem in observingthe effect in my samsung galaxyS 2.3 version.
Can anybody post some sample code, that how to properly use BassBooster ApI's.
====================================================
Code : which I am currently have.
try {
mBassBoost = new BassBoost(0, mMediaPlayer.getAudioSessionId());
} catch (IllegalArgumentException e) {
Log.e(TAG, "getBassBoost() BassBoost not found exception: " + e);
} catch (UnsupportedOperationException e) {
Log.e(TAG, "getBassBoost() Effect library not loaded exception: " + e);
}
bar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
Log.e(TAG,"I am inside onProgressChanged = " + progress);
mBassBoost.setStrength((short) progress);
}
public void onStartTrackingTouch(SeekBar seekBar) {
}
public void onStopTrackingTouch(SeekBar seekBar) {
}
});