app:
Music
MusicFX
添加到Music菜单中:
if (getPackageManager().resolveActivity(i, 0) != null) {
menu.add(0, EFFECTS_PANEL, 0, R.string.effectspanel).setIcon(R.drawable.ic_menu_eq);
}
Music 菜单中启动 MusicFX:
case EFFECTS_PANEL: {
Intent i = new Intent(AudioEffect.ACTION_DISPLAY_AUDIO_EFFECT_CONTROL_PANEL);
i.putExtra(AudioEffect.EXTRA_AUDIO_SESSION, mService.getAudioSessionId());
startActivityForResult(i, EFFECTS_PANEL);
return true;
framework:
aosp_4.4/frameworks/base/media/java/android/media/audiofx
jni:
aosp_4.4/frameworks/base/media/jni/audioeffect/android_media_AudioEffect.cpp
jni depend lib
aosp_4.4/frameworks/av/include/media/AudioEffect.h
aosp_4.4/frameworks/av/media/libmedia/AudioEffect.cpp