yashsingh1/xdaforums huggingface dataset:
[Xperia Z Android Development] neuTrue:
@ZeroInfinity:

First, thanks for hardworking and your passion for music/audio. :)

By the way, I think there are some place of improving your mod.

In your "99pure" script, the following code I think it doesn't get executed at all.

echo "Start executing..."
setprop audio.converter.samplerate.preferred libsamplerate;
setprop audio.converter.samplerate.libsamplerate.quality zero_order;
setprop default.pcm.rate_converter=samplerate_zero_order
echo "This will never be printed, as the code will exit, in the 2nd line."
alsa_ctl store #Won't be executed

To make sure you could try to execute it yourself "./system/etc/init.d/99pure" or even try this: "getprop audio.converter.samplerate.preferred".

Android seems having a bug, that can't set a prop for long ones. I am not currently sure, if this prop could be set in another way.

I am testing this on my One X (Tegra 3). Also, I found that our audio codec/ dac (aic3008) supports 96kHz (a lower end module of our chip supports it, so ours should be as well http://www.ti.com/product/tlv320aic3007#technicaldocument ).

As I knew in your early mod, you were supporting One X (Int.), did you find any gain from using 96kHz?

Last question:

Aznrice2k4: Is forcing the quality to be 34 (and your's to the max 255). Any real reason for this (I'll be asking him shortly)?

#Yours is set to 255
setprop af.resampler.quality 34

#I agree with him on this one (disabling the powersaving way, to obtain higher audio output, you might want to try it in your next build?)
setprop lpa.decode false

#In my phone, there is an extra property "persist.af.resampler.quality" any info on this one?

Thanks in advance. :)
[Xperia Z Android Development] ZeroInfinity:
you can't have everything, our DAC can't handle the very loud volumes. Use better headphones, I know stock sony earphones are very, very quiet.

As I said before, every device have different hardware and it is IMPOSSIBLE to make everything universal.

1) Thanks for the tip

2) AIC3007 in your link? I always thought our chip was just AIC3008...

3)no idea what aznrice2k4 is doing actually, the last time I set the resampling rate was 4 but that lead into some kind of SRC error (dmc_universe told me) so only 255 doesn't give this bug.

even if we could enable 96kHz for the One X, we need a kernel developer to enable it. Oh and remember Kholk from EPRJ kernel? he even told us that in reality out chip can go towards 192kHz but the DAC and ADC only supports up to 48kHz :)

EDIT: so if I add the getprop lines, do I add it like this? "getprop audio.converter.samplerate.preferred libsamplerate;"

BTW our Xperia Z already desiabled LPA lol so no need to for us...

the persist.af.resampler.quality is exactly the same as the normal version af.resampler.quality, it's just persistant if you put persist in front of it but I don't think it really matters
[Xperia Z Android Development] neuTrue:
1) Don't mention it, you have done greater job.

2) Yup, but AIC3008 is a custom made chip that TI made it specially for our One X (hence, why no public documentation is available). Our reference should be a module that is below it (AIC3007), and since the inferior chip supports 96kHz ,ours (the superior chip) should supports it as well.

3) I know 255 is the max value that can be set, as you are using aznrice2k4's bin/libs I though that he might hard-coded that value.

Thanks about the kernel tip, I was thinking that our chip was hand-capped in kernel to 44.1kHz ,and I'll see what our kernel developers going to say about this (they are currently fixing some bug related to CPU getting stucked).

I knew Kholk, but I doubt that he read the wrong reference therefore he concluded wrong thing with his own example (you could put a speedometer with scale up to 720km/h on a Corolla, but in reality it won't reach 360km/h ever).

About "getprop", it is a confirming mechanism to be sure that your "setprop" had been applied.

Like:

"setprop test.test 1".

"getprop test.test" > output: "1".

"getprop test.undeclared" > output: "".

Therefor you should be using it this way:

"getprop audio.converter.samplerate.preferred", and if it's working you should be getting "libsamplerate".

I hope this helps. :)

Edit:

Good that it's disabled (Sony, knew it's stuff :P). I decided to make both presist value the same as the one without. Thanks, for your help.
[Xperia Z Android Development] MafiaManV:
I get the same drop in playback and i'm using Sennheiser ie80. So its not hp's fault. I'm little worried they don't get damaged from that :/ But ok, if it only happens on max volume, I'll lower it a bit ;)

Sent from Sony Xperia™ Z
[Xperia Z Android Development] ZeroInfinity:
thanks a lot man, I have actually tried 96kHz manually back in the ICS days of the HOX, by editing the asound.conf I managed to enable 96kHz. How did I know it was working? well, the audio has changed, it wasn't nice. The audio playback of everything turned to super-slow motion for some reason, maybe the chip had trouble playing 96kHz audio playback?

On the Xperia Z I have more freedom of making my own asound.conf (Which will be in v11) and made Xperia Z play 192kHz without any problems (No slow-motion or any bugs)

The only way to remove the bug is to decrease the volume even more, DO YOU WANT THAT?! :p
[Xperia Z Android Development] forest1971:
It is very important to deal with the bug so that there is no drop of sound. (Please ignore if this is not useful) I guess it would be good to have a version with lower volume as well for testing purposes to see if it fix the bug! Cheers.
[Xperia Z Android Development] ZeroInfinity:
here is the problem though, half the people want to keep this volume and half the people wants this bug to be fixed.

I know how to fix the bug but this means you guys will have to deal with even quieter volume then you have now (It's already nearly back to stock volume guys)

Who listens to max volume anyways lol, it's very bad for your ears :p (Unless you have high impedance headphones/earphones like Sony's stock earphones then I can't do anything about that)

There won't be any need to test, I am sure it will fix the bug because last time (I think it was v7.0), at 70% and above the volume also started having the bug (Remember?) and now the volume bug only occurs at max values.
[Xperia Z Android Development] forest1971:
Thanks for kind reply. How about generously give us two versions? Cheers.
[Xperia Z Android Development] ZeroInfinity:
Maybe I will in v11 but I'll release like a patch to lower the volume down
[Xperia Z Android Development] El.Guaje:
Yes, Hope you to make 2 seperate patch.

1 is v11

1 is make lower in volume
[Xperia Z Android Development] forest1971:
I hope this will help do away with lots of bug reports! You Rock Man! :victory:
[Xperia Z Android Development] eddietah:
My Dearest Love,

When is v11 coming :D
[Xperia Z Android Development] ZeroInfinity:
that's what I'll do :) but you see, the values are already near stock, so decreasing it will only make the volumes sound more and more like the stock volume lol It's gonna be like 1 or 2 values higher then stock so not much difference afterwards! xD

lol it better :p

Maybe this afternoon, just need a few more tests then I might release
[Xperia Z Android Development] El.Guaje:
I don't usually listen to music in max volume (with your mod, it's around 60% to 70%).

I don't think that degree the volume down is good because sometimes I want to feel that I'm at the bar :D

Waiting for my salary and I'll give you some coffees by the end of this month for your great job.

Thanks so munch for the mod :D
[Xperia Z Android Development] eddietah:
Arghh..... afternoon that mean sleep time again for me in my country :(
[Xperia Z Android Development] charmidz:
I am really looking forward to :D
[Xperia Z Android Development] eddietah:
Me too but I think by the time v11 is release I will most properly be in bed cos of the time difference :(
[Xperia Z Android Development] charmidz:
I am in the time zone GMT +7 :o

and you??
[Xperia Z Android Development] eddietah:
GMT +8 ;)
[Xperia Z Android Development] darkerm:
WoW! It really Works.

I was very Disappointed with sound quality of my Xperia S Running Xperia Z MOD Walkman.

After Flashing this MOD my Walkman got a new life.

The Bass is Deep, Vocal is Clear.

Now All I need is xLoud to be more louder.

Please OP make a MOD to make Xperia S internal speaker more Louder.

Thanks :)
[Xperia Z Android Development] ZeroInfinity:
Why do people not read previous pages?

I have answered this for many times now and look carefully, this is the LAST time I will say it:

Making universal version of this mod with full features is impossible, every phone has different hardware and so I cannot make it compatible for everyone.

This mod was first developed for the Xperia Z/ZL, I am not going to develop for the XS or any other device, stop asking me to port to other devices PLEASE!

Understand this well, every device has different hardware and so I cannot make everything work for everyone, some of the features are specific to Xperia Z/ZL's HARDWARE and not others so it will simply not work. Porting is also a problem, I don't have the device and by the time I have ported to many, many android devices, I will not have time to develop the xperia Z in the future. because of all the time that has been lost just so I could port for you guys...
[Xperia Z Android Development] eddietah:
My Beloved Dearest Darling,

Can you release v11 now :D

My country is about 9:05pm still got time to flash :D

Really can't wait :D

---------- Post added at 09:05 PM ---------- Previous post was at 09:05 PM ----------

Cos they just don't know how to read simple english lol ;)

All right man 1 more hour and v11 will be release :good:
[Xperia Z Android Development] ManuH8:
where's v11 Zero??? :D:D:D
[Xperia Z Android Development] shem2409:
Thanks for your great MOD for Xperia Z. It really does improve everything sound related on the device. I have created a forum thread "10 things to do after successfully rooting your Xperia Z" and included it on the list along with a how to install video:

http://xdaforums.com/showthread.php?t=2227963
[Xperia Z Android Development] ZeroInfinity:
I can release in 1 more hour! :) be patient guys, I don't think anyone from the HTC forums ever asked for ETAs everytime like this :p
[Xperia Z Android Development] ManuH8:
Is because v11 is the best, you know in bluetooth is awesome!! :P
[Xperia Z Android Development] Supersaiyan.IV:
May I remind all of you that this is the developer forum section.

For each 4 useful development comments I see about 2 pages of useless ETA and "will you port to this device" questions. This is not Twitter.

If you want to post, be sure to be constructive. By that I mean:

Feedback, Issues, and bug-reports.

ALSA scripting tips.

ALSA libraries.

Tips for further improving audio quality.

Despite the name ZeroInfinity he doesn't necessarily have infinite patience.

Now, there's a bug in Sony Walkman's codecs. It doesn't read all FLAC files. Here's a link to one.

File plays in pretty much all applications apart from Sony Walkman. persists in both stock and modded environment.

Look into it if you have time.
[Xperia Z Android Development] ZeroInfinity:
That is very strange, my whole audio library is made up of just FLAC audio and walkman plays all of them nicely without any bugs lol

EDIT: Here's a very large changelog of v11 :p
[Xperia Z Android Development] eddietah:
:eek: Holy smoke I'm really impressed by the v11 changelog

Please give it to me now :laugh:
[Xperia Z Android Development] Benjoy Ericsson:
I'm counting every minute before you release v11 :D
[Xperia Z Android Development] eddietah:
Me too. Let's Rock Baby! :D
[Xperia Z Android Development] doki81:
in v10..i am having issue in walkman apps where if i choose the hi clarity eq...later after i quit walkman app and it will auto chg back to the realism eq again...is this normal?
[Xperia Z Android Development] eddietah:
No there must be something wrong somewhere :rolleyes:
[Xperia Z Android Development] ZeroInfinity:
I have had people report this to me before, I still don't know how it causes this but I have a fix which worked for me last time:

go to settings > apps > All and search for "PureXAudio Engine" tap on it and select "Clear Data"

Reboot and check if your sound enhancements are back to default (Like equalizer is set to off).

Then in the PureXAudio zip go to data/data/com.sonyericsson.soundenhancement/shared_prefs/ and move "com.sonyericsson.music-SE-SETTINGS.xml" to your internal storage

Go back on your file explorer and move it to data/data/com.sonyericsson.soundenhancement/shared_prefs/ in your phone and then set permissions rw- rw- --- (Or chmod 660) reboot and it should be on PureXPsychoRealism, change it to whatever you want and reboot and the changes should stick
[Xperia Z Android Development] eddietah:
Can you please release v11 please? I been waiting & waiting ;)
[Xperia Z Android Development] ZeroInfinity:
A2DP features are VERY limited because of the crappy bluetooth connection, it isn't nearly as powerful enough as a in-line audio device (connections make things slower and less powerful...)

everything will be working for a2dp except for 2 things:

No 192KHz audio - the chipset only supports up to 48kHz though bt audio (Bluetooth patch below download link in OP)

No volume increase (I don't think, but you can try since I have never tested on a BT device before)

but other than those 2, everything is working ;)

Due to Bluetooth audio limitations, you guys will NEVER be able to go above 48kHz... sorry :(

And another tip, if you're an audiophile I would highly recommend some headphones with in-line audio jack... just so you can experience the full power of what this mod can do :)

EDIT: PureXAudio v4.0 is finally here! All the warnings are in the OP so BE SURE TO PROPERLY READ THE OP THIS TIME!

Disclaimer to those who WANTED me to increase headphone volume: I AM NOT RESPONSIBLE IF YOU BECOME DEAF FROM THIS MOD!

Oh and BTW, this version does NOT increase speaker volume, only headphone volume...
[Xperia Z Android Development] Paddiis:
Heee, I wanted to get BT headset because of the flaps but might get some new in-line headphones instead when you put it like that, 48kHz against 192kHz is huge :>
[Xperia Z Android Development] ZeroInfinity:
I see what you mean, those stupid flaps do get annoying at times but it's totally worth the trouble for this kind of audio quality :D
[Xperia Z Android Development] Paddiis:
GJ with the updates man, thank you.
[Xperia Z Android Development] andypull15:
thanks very much for making the volumes alot louder and updating this mod its fantastic :) :laugh:
[Xperia Z Android Development] jagdesh:
Hi buddy, great mod, thanks... love it :good:

Could please also increase internal handset speaker volume also, that the only thing missing which needs more volume, I am sure the tiny speaker is more than capable of producing much louder audio... because when on YouTube the volume for some videos are higher more louder... but when it comes to phone ringtones, notification sounds etc, the internal speaker is not loud enough ...

so therefore please see if you can increase the internal speaker volume also...
[Xperia Z Android Development] shaoran_ojo:
Meh!! I really want this to work with AD2P but from what you wrote above, that`s not gonna happen T_T.

Oh well lol gonna back to in-line for the sake of better quality sound xD.

Thanks for your great MOD. :D
[Xperia Z Android Development] ZeroInfinity:
Re: [SOUNDMOD] PureXAudio v4.0 [18/03/2013]

I'll see what I can do but seriously, the volume is already loud enough for me LOL

Yeah... bt audio sucks when it comes to audio mods :P

Sent From my blazing fast Sony Xperia Z C6603 powered by PureXAudio
[Xperia Z Android Development] sacredsoul:
I was under the impression that I had AC!D installed on my device but a simple check via Root Explorer for the AC!D files were negative. So installed PureXAudio and the files didn't turn up in Root Ex again. So got rid of the CWM recovery and installed the TWRP recovery and it installs and work fine. Using with PowerAMP and Audio Technica earphones.

Disabled Direct Volume Control in PowerAMP as per the first post in this thread but found the volume lacking. So re-enabled it and it's just nice. No audio glitches so far.
[Xperia Z Android Development] dreamz0r:
Sv: [SOUNDMOD] PureXAudio v4.0 [18/03/2013]

I flashed this via TWRP's recovery and it felt like it flashed way too fast and I can't say that I hear any difference at all in the sound. How can I check if it actually got installed or not?

I'm on stock rom and deleted cache + dalvik during flash.

It's a clean rom except that I've enabled the white balance for calibration of the screen.
[Xperia Z Android Development] TheMorpheus:
R: [SOUNDMOD] PureXAudio v4.0 [18/03/2013]

I don't know if that is related with this mod, but after flashed it I get a force close from Light Flow (before was working without a problem)

Anyone experience this?

Edit:

The problem was the update of Gmail... Sorry

Inviato dal mio C6603 con Tapatalk 2
[Xperia Z Android Development] doki81:
Re: [SOUNDMOD] PureXAudio v4.0 [18/03/2013]

Having the same scenario with what you say. Without direct volume control seem like something is missing :(
[Xperia Z Android Development] MafiaManV:
[SOUNDMOD] PureXAudio v4.0 [18/03/2013]

Hi ,thanks for mod, but i cannot find etc/soundimage folder after flashing so i guess mod wasn't applied propertly , as i don't see any change in my sound .
[Xperia Z Android Development] jagdesh:
maybe the mod is not installed properly on mine ... like other users how can i verify the mod is installed ???

I am normal recovery from Doomlord and i also wiped the cache and dalvik before installing and after installing ...

Still would like to know how to verify if this mod is actually installed because i still feel the internal phone built in speaker volume is too low...
[Xperia Z Android Development] nazrin313:
Re: [SOUNDMOD] PureXAudio v4.0 [18/03/2013]

Xloud on? Mine sounded great n loud
[Xperia Z Android Development] jagdesh:
You mean the sound from the phone inbuilt internal speaker??

I really need to check if this mod is installed properly or not ,,, if not then how to install it since i have done it multiple times already through recovery and i wipe dalvik and cache before and after installing ...

maybe i need to wipe my phone i mean format it (will i loose root and recovery if i wipe my phone through recovery itself) ...

can anybody suggest how to wipe my phone clean using recovery and keeping root and recovery intact??

Edit: maybe there can be another method like flashing some boot.img using fastboot or by copying some files into specific folders and then rebooting ?? (this method can work for all those who cannot install this mod using recovery method
[Xperia Z Android Development] Achille91:
if i try to put the files with root browser the phone restart itself O_o
[Xperia Z Android Development] ZeroInfinity:
Re: [SOUNDMOD] PureXAudio v4.0 [18/03/2013]

LOOOOOOOOOL

that's not my problem but root's problem

For those who say no difference in sound, either get better headphones, listen to flac music or forget this mod and forget this mod and move on

As I said a billion times before, this mod makes no difference to speaker volume whatsoever, only headphones

Sent From my blazing fast Sony Xperia Z C6603 powered by PureXAudio
[Xperia Z Android Development] dreamz0r:
Sv: [SOUNDMOD] PureXAudio v4.0 [18/03/2013]

I have this problem as well. I tried two times and it seems like it doesn't copy/replace any files. The flash process takes less than a second and it seems way too fast so perhaps it's just outputting the text on the screen without actually doing anything?
[Xperia Z Android Development] Knight77:
R: [SOUNDMOD] PureXAudio v4.0 [18/03/2013]

By the way the OP said that is not necessary to delete cache or dalvik cache when updating. Just wanted to remind this :)
[Xperia Z Android Development] dreamz0r:
Hello again, thanks for your reply earlier. What if I lowered from 196khz back to 44khz, do you think the sound drop would still be there? Since I'm using Spotify and haven't synced the "extreme" quality i wouldn't mind using 44khz.

Also I'm not asking you to change your mod only to tell me how to do it and I'll try it myself if it's not too much of a hassle that is!

Cheers and keep up the good work!
[Xperia Z Android Development] ZeroInfinity:
why would you want to use 44.1kHz? that just makes the quality very, very bad.

Are you having problems with 192kHz? if there aren't any problems then is it really that bad using 192kHz?
[Xperia Z Android Development] diego9016:
Please stop it with this kind of comments, they're filling the thread with useless information... It will be released soon.
[Xperia Z Android Development] dreamz0r:
I just thought if it might help keeping high volume without the sound bug but I know nothing about how the phone works so I guess I made an somewhat unnecessary post!
[Xperia Z Android Development] ZeroInfinity:
the sampling rate has nothing to do with the volume bug whatsoever :p

I am uploading a volume bug fix right now, this will lower the volume slightly but it SHOULD fix the bug, i can't promise though. This is the ONLY way to fix the bug, nothing else will fix it...
[Xperia Z Android Development] sacredsoul:
Just a heads up. The v10.1 link in the first post is actually v11. Guess Infinity forgot to update the title of the hyperlink.
[Xperia Z Android Development] ZeroInfinity:
HAHAHAHAHA thanks for noticing xD

EDIT: Fixed :D
[Xperia Z Android Development] Supersaiyan.IV:
Is stock volume patch updated? Flashing V11 now, will update post once I test with DVD-Audio 24bit FLAC.

EDIT: Sound is excellent, and balanced enough for me to stop flashing the Stock Volume patch.

EDIT2: You really have managed to get some bass to the foreground. But the ~20-60Hz bass is still not there! This is really going in the right direction.

EDIT3: Noticeably less CPU distortions compared to stock.

EDIT4: I've noticed that using the EQ at too high/low values sacrifices some silent/loud sound. This also occurs on stock. TBH I use your mod with EQ completely off. It's excellent!
[Xperia Z Android Development] charmidz:
Thank Zeroinfinity :D
[Xperia Z Android Development] ZeroInfinity:
No need to update the stock volume patch :p (What is there to update? xD)

I have added a fix to fix that volume shuttering bug at high volumes, but this sacrifices the volume hack and lower the volume slightly...
[Xperia Z Android Development] sacredsoul:
Initial test... V11 is undoubtedly the best version. I won't be surprised if this is final. The bass is so much tighter and the sound quality is amazing.
[Xperia Z Android Development] ZeroInfinity:
All thanks to my custom configured ALSA configurations I made from scratch ;)

Just a note: My mods rarely become final :p I'm always developing audio mods so I doubt my mod can go final version really fast :p
[Xperia Z Android Development] neuTrue:
I was wondering what your V11 would include...Man, I see you have done alot's of things (looking to the lib/bins you seems you have everything that we need from ALSA!). Now your V11 is the base, I am going to use it for modding the sound on my device! :)

By the way, I am not sure if you set the right perms for all bin's (only saw couple of bins permset).
[Xperia Z Android Development] Supersaiyan.IV:
Does PureXDynamics incorporate audio normalization? Testing all kinds of settings and everything, including EQ off produces best results using 24bit FLAC.

I'll have to re-listen to a few Mike Oldfield albums with this.
[Xperia Z Android Development] ZeroInfinity:
yeah gotta get rid of some of the bins, alsa_aplay, alsa_amixer and alsa_ctl are the ones which helped me make alsa much better :)

and the rest of the bins I think I can just remove in the next version :)

If you want, I can help make alsa better for Tegra 3 as well but we need to think of the hardware limitations the TLV320AIC3008 has...

PureXDynamics is just basically Dynamic Normilizer lol
[Xperia Z Android Development] bluechelsea:
How does this mod compare to the acid audio engine v5.0?

Is it worthy to install this over acid audio?