[Q] Audio Programming in android using OPENSL ES - C++ or Other Android Development Languages

Actually i'm trying to implement a music player app in android..so i installed android ndk which contains opensl audio libraries..i used it and tried to apply environmental reverb effect..but there is no change in the song..so anyone pls let me know what is the problem..
note:
Added permissions in manifest file.

Related

[GUIDE][MOD] Tuned MegaBassBeats for SGY (update-3/6/2012)

D3HuM4NiZ3D has made a post about "MegaBassBeats" in dev section. I don't want to make a kind of double post. from now on I'll made this post focused to explain on how it work and how to improve it. even if the tittle said that its for SGY it will work also on other Gingerbread based ROM. it tested on SGY, SG-Fit, SG-Mini, and SG-Gio. you can get all version for all my modified MegaBassBeat here. please check changelog for further details for every version.
v1.1
http://www.mediafire.com/download.php?gw2s475p1uwyby9
v1.2
http://www.mediafire.com/download.php?d2ftf4vdbai4hrq
v2.0
http://www.mediafire.com/download.php?fgc3kxdznmny7s8
v.2.0.1
http://www.mediafire.com/download.php?ei6xclihci8d3g9
v.2.1
http://www.mediafire.com/download.php?a1vxoqcd23mbzvb
btw, I've found something funny. if you find any mod called ultimate_multimedia_enhancement, it is actually same with my the one in this link.
Click to expand...
Click to collapse
this patch will install several files including two apk, a framework file, lib files, and some additional needed files in /system/etc/. this mod also include bravia engine mod. I've added the framework, the lib, and the xml file needed for bravia engine. for an addition from v1.2 I've also added dsp manager for best result. please delete your dsp manager if you already have one.
PS:
1. do it with your own risk
2. no need to thank nor press that button for me. I'm just a noob, give that for the original dev instead.
3. special credits for D3HuM4NiZ3D who has kindly given me the permission to modify his work. you can get the original link here. http://forum.xda-developers.com/showthread.php?t=1642961
HOW TO UNINSTALL IT
=================
Click to expand...
Click to collapse
well...no one can make a single mod which suitable for all kind of music. if you don't satisfy with this work, but too lazy to modify the setting as described in 2nd post you can follow these guide to uninstall this mod. it won't be easy and only can be done in a rooted device with root explorer installed.
1. extract megabassbeat zip file.
2. make a list of all files in that zip file
3. open your root explorer and delete these file
Code:
- in /system/app delete audioeffectservice.apk
- in /system/bin delete all files listed in megabassbeat
- in /system/etc delete all files listed in megabassbeat
- in /system/framework delete all files listed in megabassbeat
- in /system/lib delete all files listed in megabassbeat except libaudioeffect_jni.so and audio.so in /system/lib/bluez-plugin
4. delete this lines from build.prop file
Code:
ro.service.swiqi.supported=true
persist.service.swiqi.enable=1
5. reboot your device.
CHANGELOG
=========
v1.0
- initial release by D3HuM4NiZ3D
v1.1 (10-5-2012)
- my first release. minor change on sound configuration
v1.2 (12-5-2012)
- new sound configuration
- added DSP manager
v2.0 (27-5-2012)
- new sound configuration
- added missing files
- added more lib files
- added new framework file
- added new binary file
- new lib configuration for sound effect
v2.0.1 (30-5-2012)
- new apk added
- small configuration changed
v.2.1 (3-6-2012)
- new build.prop script added to activate xLoud
- new eqfilter configuration
- new sound configuration
- new lib added
Click to expand...
Click to collapse
basicly this mod is kind of improvement for old beats audio. beats audio have two different version. the newer one have b1.jar inside it. it has bad issue with several music player. the older one doesn't have b1.jar. MegaBassBeat combine xLoud mod+old beats audio to get more solid bass sound.
how it works?
it will install an apk and a framework and the lib needed to our rom. both of them works as enhancement for our audio system. they're using some files in /system/etc/ as their default setting. we can modify them as we like.
how to modify it?
at this time I can only change the setting for equalizer setting. if you didn't satisfy with the sound quality, you can modify it by yourself. go to /system/etc/audio. you'll find a lot of *txt files. those files contain all the value for audio setting. in this mod, you'll need to change the setting in eqfilter.txt.
the original setting was
Code:
A,1
B,1
C,1
D,15000
E,20
F,0
G,50
H,500
I,3000
J,4000
K,5500
L,96
M,150
N,96
O,400
P,600
Q,0
R,4
S,0
T,-4
U,5
I've changed the value to
Code:
A,7000
B,10000
C,10000
D,15000
E,20
F,0
G,50
H,500
I,2500
J,4000
K,5000
L,500
M,500
N,500
O,1000
P,1000
Q,0
R,4
S,0
T,4
U,5
the value from A to U is the equalizer setting. you can change the value from -15000 to 15000. please be carefull since any value you set in this file can affect on your sound quality so much. after modifying this file, you have to copy eqfilter.txt to /system/etc too.
btw, further modification to all files in /system/etc/audio is possible. however, I don't know the right value for the setting. the other file contain a lot of variable, make it difficult to understand. please contact me if someone know how to modify those files. I'll include them in my latest update.
reserved...lol
I'm planning to leave this project for a while. I'll give you all details modification I've done in the original work. beside adding more files into the original work. I've change the value in three files. if you extract my latest version, you'll see some files with *xxx1 extension. thats the original file comes from dehumanized. the one without '1' is my modified one. those three files are: eqfilter.txt, HP_audio.csv, and audio_effects.conf.
eqfilter editing is easy. you already can find the guide on 2nd post. this files comes from the xLoud mod. for the latest value you can check in my latest version.
HP_audio.csv contain the setting for beats audio. the original value is
Code:
ID,Value
TDAS_BUNDLE,
TDAS_VERSION,0,
TDAS_SAMPLERATE,1,
TDAS_IN_CHANS,2,
TDAS_IN_MATRIX,0,
TDAS_BYPASS,0,
TDAS_RATE_MULTIPLIER,0,
TDAS_IN_CHAN_FORMAT,0,
TDAS_DOWNMIX_CONFIG,0,
TDAS_OUT_CHANS,2,
TDAS_M2S,
M2S_ENABLE,1,
M2S_DETECTOR,1,
TDAS_SSH,
SSH_ENABLE,1,
SSH_MODE,3,
TDAS_SSE,
SSE_ENABLE,0, --> stereo effect. 1 for enable
SSE_WIDTH,0,
SSE_SPK_MODE,0,
TDAS_SLC,
SLC_ENABLE,1,
SLC_LEVEL,1,
SLC_DEPTH,0,
TDAS_VOL,
VOL_ENABLE,1,
VOL_GAIN_INTERNAL,0, --> you can change the setting. max10
VOL_GAIN_EXTERNAL,0, --> you can change the setting. max10
VOL_GAIN_TYPE,0,
VOL_BALANCE,0,
VOL_MUTE,0,
TDAS_NB,
NB_ENABLE,1,
NB_CUTOFF,5,
NB_BOOST,5,
NB_LEVEL,1,
TDAS_GEQ,
GEQ_ENABLE,1,
GEQ_NBANDS,6,
GEQ_PREAMP,0, --> you can change the setting
GEQ_MAXBOOST,24,
GEQ_BAND1,0, --> the equalizer setting. you can edit it. --> 5
GEQ_BAND2,0, --> 5
GEQ_BAND3,-4, -->4
GEQ_BAND4,0,
GEQ_BAND5,4, --> 0
GEQ_BAND6,4, --> 0
GEQ_BAND7,0,
TDAS_MUP,
MUP_ENABLE,0, --> 1
TDAS_MSR,
MSR_ENABLE,0, --> 1
TDAS_HFE,
HFE_ENABLE,1,
HFE_DEPTH,1,
TDAS_FADE,
FADE_ENABLE,0,
FADE_TARGET,0,
FADE_TIME,0,
audio_effects.conf contain the additional library setting and the setting. I'll only show you my edited part here since the file is quite long.
Code:
libraries {
bundle {
path /system/lib/soundfx/libbundlewrapper.so
}
reverb {
path /system/lib/soundfx/libreverbwrapper.so
}
visualizer {
path /system/lib/soundfx/libvisualizer.so
}
pre_processing {
path /system/lib/soundfx/libaudiopreprocessing.so
}
}
I add these lines to load the sound lib
SRS {
path /system/lib/libsrsfx.so
}
bass_enhancement {
path /system/lib/libbeatsbass.so
}
then for the effect setting, I added these lines
effects {
dynamic_bass_boost {
library SRS
uuid f7a247b0-1a7b-11e0-bb0d-2a30dfd72085
}
srsgeq5 {
library SRS
uuid f7a247c2-1a7b-11e0-bb0d-2a30dfd72085
}
wowhd {
library SRS
uuid f7a247d2-1a7b-11e0-bb0d-2a30dfd72085
I still can't understand the uuid stuffs. those lines are taken from beats audio.
all the additional files are taken from various sound tweak. there are about 5-7 sound enhancement used to improve this work. please don't ask me since I've mixed them and can't remember all of them.
reserved
[Reserved]
[Reserved]
I'll waiting tut.
did ya notice any sound improvements??
Sent from my GT-S5360 using XDA
I'm afraid all the tut are already included in my second post. modifying those file are not easy. I doubt if someone could find the correct variable and value for every files.
@hell_lock: just try it. it won't harm your device. this mod is work with all music player and any equalizer app. best result may come from poweramp music player + cm7 dsp manager.
Finnaly u released it
Good works brotha haha
Sent from my GT-S5360 using xda premium
any feedbacks so far? O_O
Pls provide the equivalent value(every numbrers) of what we are going to edit. Thanks!
davidroid03 said:
Pls provide the equivalent value(every numbrers) of what we are going to edit. Thanks!
Click to expand...
Click to collapse
all the value for eqfilter.txt is already in second post. I haven't touched any other files in /system/etc/audio
this mod works!?
if i install this mod, how about dsp manager will force close or not?
this mod will work with all music player and equalizer app including dsp manager.
Superb! My phone sound is better from before. Thankyou sir.
I think its working
post edited to avoid overlap. new update added. now including dsp manager inside it. from this moment. this thread will serve on what I've stated in 1st post.
is the bravia engine working??

[Q] How to edit audio_effects.mps file from Asus Audio Wizard (MaxxAudio)

I am working on a port of asus audio wizard which is based on maxx audio for all 32bit qualcomm devices. I want to edit the presets to include an "off mode" where the eq is flat and all features are turned off as the app does not have an off effect on its own. I have been working with android for quite sometime and am no stranger to editing something like dolby presets. The problem I have is that the .mps file is unreadable in any text editor I have used on either windows or linux. I have tried every language in notepad++ and nothing will properly read this file. Please help me identify this language so I can edit it and we all can have Asus Audio Wizard!! File is attached in a zip
-- Thanks!!

[Q] smali: How to add an external library to save settings

I am trying to add a library that will read/write settings in an Android ROM through smali editing.
If compiling from source I just add the library source and edit a couple of Android.mk's but from a non AOSP rom I do not know how to add the library.
So far I have tried using Xposed, but I prefer not requiring Xposed.
Is there a way or alternative approach to have a settings library added?
Thank you

Linking & Using Non-NDK Android Platform Libraries

Hey Guys,
I'm working on a global audio tuning system for Android similar to Viper4Android and JamesDSP, but allowing the User to program and create their own audio filters on the fly. In order to do so I need to link against libLLVM.so which is one of the Android Platform Libraries which doesn't seem to be exposed via the NDK (https://android.googlesource.com/platform/external/llvm/).
My assumption is that I will need to build that library from AOSP Source independent of my project and then link against my locally built copy. Once compilation of my project is complete I don't need to distribute my locally built libLLVM.so file since I can leverage the one existing on the actual device.
I just wanted to see if anyone has any experience doing this, or if I'm going off the deep end.
Thanks!

Converting apk to Android tv and firestick basic Source edits ?

Hello to all !
post here my question related to the title
I have an app running OK on Smartphones , Tablets , Android boxes
I'm wondering which files must to be basically edited to modify an existing app to get it runing on an Android Tv and firestick
I mean ...have to understand whats the exactly dynamic if editing manifest file reflect automatically edits to gradle ( syncing the project in Android Studio )
I had a read on Adroid official devs documents but to be honest I can figure out how to do things correctly ( edit manifest in the source before open the project in Android studio or edit it when "into " Android Studio ) do I have to manually edit even gradle file ( property and/or app ).
I know that app for TV and firestick have different behavior and doesnt require some activity like touchscreen ... they have to run with remote control , style and layout must be different so you have to add leanback to help you , banner to show in tv home ..
but my difficult is "start" to edit and where exactly to avoid load of warning in res/style and layout running the app with Tv emulator in Android Studio
Sorry for my poor explanation ...I'm an entusiast "homemade" dev

Categories

Resources