开发者

How to set preset eq in android? [closed]

开发者 https://www.devze.com 2023-03-30 14:44 出处:网络
Closed. Thi开发者_运维百科s question needs to be more focused. It is not currently accepting answers.
Closed. Thi开发者_运维百科s question needs to be more focused. It is not currently accepting answers.

Want to improve this question? Update the question so it focuses on one problem only by editing this post.

Closed 2 years ago.

Improve this question

I want to develop a preset equalizer(not graphical) and set like a classical,jazz,normal,rock(these are represented in spinner). Can anbody help me regarding this.


i got the solution for it,Code is shown below here:

 Equalizer mEqualizer;

 short m=mEqualizer.getNumberOfPresets();

 music_styles = new String[m];

 for(int k=0; k <m ; k++) 

 music_styles[k]=mEqualizer.getPresetName((short) k);



  // it gives 10 presets by equalizer engine.(normal,classical,rock etc.) By setting through the following code


mEqualizer.usePreset((short)x); where x is preset x<10 
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号