yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] enomther:
Hi Meltus,

Just for clarity ...............

This is specific to my "TheOfficial" ROM's.

At boot/init time, my ROM auto-detects dream vs. sapphire-32B hardware.

At which point it removes any /system/etc/AudioPara4.csv file and symlinks the appropriate "default" AudioPara4.csv for dream or sapphire ...

For dream the symlink points to ...

/system/etc/AudioPara4_trout.csv

For sapphire-32B the symlink points to ...

/system/etc/AudioPara4_sapphire.csv

In one of my upcoming versions (prob v1.9.x), I'll supply the user with an automated way to obtain your "VolumeHack".

So just FYI, and for clarity, in case some1 else hits up your thread saying it doesn't work on "TheOfficial", you can confidently say enomther's fault, not mine! ;)

~enom~
[G1 Android Development] Meltus:
Wow, very impressive! :D

Let me know when you're done, i'd love to test it!

and i may have to take you up on that lol :p
[G1 Android Development] mahasmb:
Meltus, I got your e-mail. Your app works wonderfully! Thanks a lot.

And thank you, too! I can finally see paid apps!

I'm a really happy Android user now :)
[G1 Android Development] LucidREM:
TheOfficial

ok .. so i updated my script to overwrite the AudioPara4_trout.csv and AudioPara4_sapphire.csv as needed to make the hack work .. the original files can always be replaced if necessary
[G1 Android Development] enomther:
Sweet!

Off-Topic Here:

So Lucid ... did you verify whether or not a user w/TheOfficial can update your script easily, shamefully I have not. :(

~enom~
[G1 Android Development] cyanogen:
Meltus-

These hacks don't work on Donut anymore. In fact they break audio recording. The .csv files from my 4.1.11.1 release are from a "real Donut" and everything works. You might wanna take a look at them.. v7 sounds great but without audio recording thats a no-go :)
[G1 Android Development] Drizzy Drake Rogers:
I second that, hero roms do not play audio on boot and sound recorded is also broken, take a look for us please!

i love how the V7 sounds and please keep up the good work!

Drizzy~

EDIT: they work on the old hero, but on the updated hero roms the audio is canceled out, still works in music.....
[G1 Android Development] Meltus:
Really? everything's working perfectly for me on MoDaCo's Hero (if that is the newest version of hero), including sound recording.

Also, i'm aware of the problems with the Donut builds but i wont be able to work on them for a few days (goin uni and i dunno how long it will take to set up internet access).
[G1 Android Development] Jdom58:
Lucid, I have a question, I checked my system/etc and those two files are still there along with the new files after installing V7 v2r2 using terminal with this method:

$su

#mount -o rw,remount /dev/block/mtdblock3 /system

#cd /system/etc

#cp /sdcard/temp/AudioFilter.csv /system/etc

#cp /sdcard/temp/AudioPara4.csv /system/etc

#cp /sdcard/temp/AudioPreProcess.csv /system/etc

do I need to remove the "_trout" and "_ sapphire" files using the TMOB (US CRC1) or do they get overriden?

Thanks,
[G1 Android Development] LucidREM:
AudioPara4

my script does it automatically .. you can just do this:

# cp /sdcard/temp/AudioPara4.csv /system/etc/AudioPara4_trout.csv

# cp /sdcard/temp/AudioPara4.csv /system/etc/AudioPara4_sapphire.csv

for whichever phone you have running
[G1 Android Development] Jdom58:
Whoa thanks for the quick answer!!!

so then I just enter # cp /sdcard/temp/AudioPara4.csv /system/etc/AudioPara4_trout.csv for the G1 and reboot, thanks
[G1 Android Development] Honestly77:
When will these sexy volume hacks work on 1.6? Seems to break things in 1.6.
[G1 Android Development] bkmo:
The original V2 is working for me. I think it may be just the next generation ones with the compressor that is breaking recording in Donut.
[G1 Android Development] garok89:
i can confirm V2 works without breaking recording in cm

which is good for me anyway coz i felt v7 was too quiet despite it supposedly being the same

keep up the good work meltus
[G1 Android Development] overground:
Pretty sure it's the AudioPreProcess.csv file that's wreaking havoc with donut.
[G1 Android Development] roxthiaguin:
#busybox cp /AudioFilter.csv /sdcard/AudioBackUp

#busybox cp /AudioPara_TMUS.csv /sdcard/AudioBackUp

#busybox cp /AudioPara4.csv /sdcard/AudioBackUp

#busybox cp /AudioPreProcess.csv /sdcard/AudioBackUp

That part...

I think there is something strange there...

In unix-system, when you are in a dir, and you want to refer some file in that dir, you have to do something like that: (it`s the way I do)

#cd /system/etc/

#busybox cp ./AudioFilter.csv /sdcard/AudioBackUp

Note that, there must have a " . " before the "/Audio.." or you will be trying to copy that files from the root "/"

To use it starting with a "/" you need to put the Full path to it, like: "busybox cp /system/etc/AudioFilter.csv /sdcard/AudioBackUp"

if it wasn`t giving any errors, so, let it be lol...but, from all I know about Unix-bash commands, it should be like that
[G1 Android Development] crypticc:
Hi. i installed cyanogen 4.1.10, 4.1.11 & now running 4.1.11.1

I've still got the recording issue but folks on cyanogen thread havent any suggestions. I notice my /system/etc has audiopreprocess.csv in addition to the other two .csv; is that correct or did my install leave .csv behind from prior version. the timestamps are identical so i presume they came as a set.

Any thoughts please? Thanks.
[G1 Android Development] pauliusba:
Bass cut-off.

Take a look at the review here: http://www.gsmarena.com/t_mobile_g1-review-337p7.php

And here is a frequency response graph from it: http://pic.gsmarena.com/vv/reviewsimg/t-mobile-g1/gsmarena_a001.png

As you can see, the Dream/G1 has bass cut-off. It also applies to Magic.

Here's a quote from the review about this bass cut-off:

It has cut-off bass frequencies, probably due to some kind of high-pass filter meant to improve sound on small size headphones.

Now here comes my question - is this bass cut-off hardware based (hardware low-pass filter), or software based? And if software based, maybe it has something to do with the mechanics you all are exploiting here, by those EQs?

If so, maybe I could just make the EQ completely flat and have good quality with some hi-end headphones.

Because it's the deal breaker for me, this bass cut-off. I'm about to buy the Diamond2 because of that, even though I'm completely sold to the Android interface and the UI philosophy of it (notifications, menus, desktops).

Diamond2 has very good sound output quality, a breathtaking 800x480 screen and some nice browsing experience...and WMP Mobile (which I love).
[G1 Android Development] overground:
Leave the stock AudioPreProcess.csv alone. I finally just took other's suggestions and pushed the AudioFilter.csv and AudioPara4.csv from the original V2, and am having no problems with record sound. It's louder than V7, but can get distorted. I just make sure to keep my volumes at around 5 or 6.
[G1 Android Development] DavidChill:
Confirmed, as per Cyan's note in his thread as well that V7 files break the recording in Camcorder (not sure about other recording methods), but that's the only thing it messes with. I applied the V7 files after a fresh wipe/Ext3 and update of CyanMod 4.1.11.1

Sounds great! :D
[G1 Android Development] sabin123:
Can anyone give me original audio files of android cupcake ?
[G1 Android Development] Mikey:
Did you bother checking the files in post 1????
[G1 Android Development] Meltus:
Sorry i've not been active, been moving all my stuff into uni and it's taken me a few days to get the internet up and running. That, plus i've been drinking a hell of a lot :D

Yeah, i meant to mention this. The preprocess file wasn't altered much from the originals so if that's what is breaking the videocamera sound then using the stock one should be fine. Unfortunately, i broke my camera a long time ago so i can't test this out.

Although, i don't think the preprocess file is what's causing all the problems, i believe it's something to do with the compressor but as i can't test it i'm not sure.
[G1 Android Development] LucidREM:
Original Audio

indeed .. or you could also do this:

# lucid -au v0

this should put the original files in place
[G1 Android Development] Charrion:
Well, there's certainly nothing wrong with that! ;)

Another way you can test is with the Shazam app. It seems it was also affected by the V7/Donut incompatibility problem. With the hack in place, Shazam would appear to sample a song only to return a cannot connect error or some such. It works ok with V2 though.
[G1 Android Development] crypticc:
I think i've fixed my audio issue with even after Cyanogen 4.1.11.1. Fixing the issues and pushing them back to the phone means my video camera now records and plays back at full volume.

I think the same issue exists in the r2v2 files used before that, (and v3r2 and so-on) that you can download from this thread.

In summary, the format of the .csv are both PC, and seem to have been mildly corrupted by a spreadsheet tool at some point.

**audiopreprocess.csv**

The last section of cyanogen file hasn't got "," indicating columns populated. I've seen this give issues to other systems before.

Generally in first section cyanogen file has trailing 0,4 in first section, you have trailing FFFF,4

Lastly, files have exponential representation of numbers in "Band NCoeff21" and "Band MCoeff10"

i.e. 7.00E+05 instead of 700000, and 3.00E+96 instead of 3 and lots and lots of zero's. Is that intentional? Or did you mean 7E05 and 3E96?

Some of the hex numbers have been converted to 3 digit hex, but is it clear that they are the intended values.

Last section - In Cyanogen file, C0 and C3 have 1E6, where it should be 1e06.

**AudioPreProcess.csv and AudioFilter.csv**

Also, I noted that in the zip AudioPreProcess.csv and AudioFilter.csv were PC not Unix format. AudioPara4.csv was fine. This was with both files from zip at front of this thread, and those I pulled from my Magic? Is that significant?

I did not open these files in any tool other than winzip, and then Textpad (which is Unix-file-friendly).

Astro File viewer direct from the SD card shows the same values.

Regards,

Chris
[G1 Android Development] NeoBlade:
Sounds like a good fine Chris. I tend to use Notepad++ for my edits but maybe its something Meltus and possibly Cyanogen could look at. Would be willing to test it out though if amended files make it out.
[G1 Android Development] vamopyros_wrath:
damn, i just looked at all three files, (stock cyan, stock off my orig, and meltus v7v2) and noticed all this, but you beat me to the punch, bravo man, lol so how do we get the preprocess file onto cyan 4.1.11.1 though, i think most of the mods are there so i would like to use that file.
[G1 Android Development] Meltus:
Good find, i never noticed this.

I can't see how they would get corrupted though, as i did what i always do when editing; open them up in notepad, do my edits, and hit save. As far as i know, they've only ever been opened by a spreadsheet program, never edited/saved using one.

I think what i'm going to do, is re-create these files using the donut audio files and see if it's compatible with hero/cupcake. It would save a lot of hassle.

Also, just out of curiosity, what happens in the logs when the audio fails?
[G1 Android Development] overground:
Stock Windows notepad tends to really mess up unix formatted files. Use Notepad++ (freeware) or Textpad (startup nag) to edit your files and set formatting to unix when saving a file.
[G1 Android Development] crypticc:
Only excel or open office will try to reformat 7E05 to 7E+05.

Check the c0 etc too, as there's some more going on there. e.g. you have 1e06, cyanogen has 1e6.

(Edit - My restored stock magic has 1e6, like cyanogen's)
[G1 Android Development] crypticc:
:-p

it was rubbish audio playback even when supposedly okay that caused me to look, and people repeatedly said they couldn't hear me on the phone.

Update: I just HTC magic restored to stock.

Microphone playback same as when it was running cyanogen, and identical to side-by-side comparison with shop demo model.

Microphone is more than slightly rubbish when operating as either speakerphone, videocamera, or voicerecorder, even if you are talking directly into the microphone.

So I'll just be happy to get Meltus' mods back onto my re-rooted phone :-)
[G1 Android Development] bkmo:
Have you fixed any of the files yourself, or are you waiting on Meltus? Just curious that's all.
[G1 Android Development] :
That review is bollocks. I analysed the out put of my G1 (running cyan404, don't know if that makes a difference), and it was indeed flat. You can test it yourself with some fairly basic software.

I'm also suspicious of that fact that both of the results seem to exhibit a top end roll off, when there is absolutely no need for one.
[G1 Android Development] crypticc:
Meltus said he would look at originals. I guess he's just enjoying first-days back at uni - ;-)

I lost my edits when I restored to stock to compare agaist shop demo.

Here's the adblogcats on record and playback, both when working with cyanogens 4.1.11.1, and when failing on v2r2.
[G1 Android Development] Meltus:
Are you talking about my mods?

I didn't use a flat EQ because it sounds absolutely awful. There's no bass at all (I think the bass cut-off is controlled by some closed-source files; HTC-Acoustic i think, it also controls how the headset EQ is controlled), and aside from that, the speaker is terrible. A flat EQ gives a horrible treble sound, hence why i lowered the top-end frequencies to even it out.

Anyway, tonight i'm gonna start work on the Donut files, so i'm gonna need some testers :p
[G1 Android Development] drpfenderson:
I will test day and night, sir. :D
[G1 Android Development] bkmo:
You post em', and I'll push em'.
[G1 Android Development] Meltus:
I'm about 99% sure it's the compressor that's causing the problems, not the other 2 files, but sometimes the compressor seems to work fine and other times it doesn't. Not got any files for you yet but i should have some later/tomorrow.
[G1 Android Development] Meltus:
Donut Audio Fix...

ok, i know it sounds terrible, this is simply a test to see if these files cause any errors. If anyone would care to test them out it would be much appreciated :)

http://www.megaupload.com/?d=YDL6OKTE
[G1 Android Development] bkmo:
I cant get it from megaupload. Someone is downloading on my IP already.
[G1 Android Development] Meltus:
FileFactory ok? :)

http://www.filefactory.com/file/a0ce2f3/n/G7Donut-potential-Fix_zip
[G1 Android Development] sstang2006:
i'm using 1.6 .. want to test this.. but have a question..

Do this files goes on /system/etc or in /sdcard/temp ?
[G1 Android Development] alritewhadeva:
they go in /system/etc
[G1 Android Development] bkmo:
I pushed them and lost audio on the video recorder. Pushed stock and V2 originals back and recovered audio on recording. Back to the drawing board I guess. :)
[G1 Android Development] sstang2006:
same results here.. video recorder won't record audio..
[G1 Android Development] Meltus:
hmm that's interesting. It's not the compressor then. Thats good news :D

More files to come later. cheers for testing guys!
[G1 Android Development] Meltus:
Ok i just threw this together quickly. No major editing going on, again, i'm just trying to see if it works rather than it sounding good. (doesn't sound too bad actually)

:D
[G1 Android Development] bkmo:
I adb pushed them, killed the mediaserver, tested music, and then recorded a video. We have recorded audio with these test files. Nice job.
[G1 Android Development] Meltus:
Excellent!!! :D

We now have files that work on Cupcake, Donut and Hero! They all have mixed results though so i might create separate files.

I'll re-release the G7 files tomorrow with the donut fix!
[G1 Android Development] FatBoyExtraordinaire:
How do you recover audio recording once it is broken. I am using Donut (1.6) and pushed V2 using Audio Hack 2.0 and now the camcorder isn't recording sound. Can I get that back somehow? And when people say V2 originals work, do you mean the V2 option in Version 2.0 or the V2 option in 1.4?
[G1 Android Development] DavidChill:
will there be an update to your app that will include the fix for Donut? :D :D
[G1 Android Development] Meltus:
of course there will :D

And to recover the video camera sound, just push the original V2 files from the first post of this thread.

Will be working on these later on today, got some shopping to do first. The beer supply is running dangerously low :p
[G1 Android Development] crypticc:
hi - just saw this but that bkmo already tested. will check-in again later if you need more guinea pigs. I have UK vodafone branded HTC Magic 32b
[G1 Android Development] FatBoyExtraordinaire:
I'm still pretty new to this and am not familiar with ADB at all, or using Terminal Emulator for that matter so I was wondering if uninstalled AudioHack 2.0 and I downgraded to the lower version (1.4) or the AudioHack Lite and pushed the v2 files that way, would that work? Would I get my recording back as well as the volume boost? Thanks in advance.
[G1 Android Development] Capt-CDD:
Donutnut fix worked

Meltus- Worked fine for me. Video recorder still had sound as well. Does this version increase bluetooth volume as well?
[G1 Android Development] Meltus:
Errr, it might do :p

It's not been made to, but if the bluetooth uses the AudioFilter.csv then yes, it would cause a slight increase in bluetooth volume.

A while ago, we failed (miserably) to create a bluetooth volume hack, it caused a lot of force close errors.

That would most certainly work, yes. :) v1.4 should be available on the internet somewhere (it's been leaked on various sites, you can probably figure out where, along with v2 ><) and the 'lite' version is available here and on androidclubhouse.

Also, i'm not in uni till 11 tomorrow so i'll be making the new files and (hopefully) updating my app to include the fixes tonight.

I'll keep you all posted!
[G1 Android Development] JimmyJayCEO:
I can't WAIT till the app is updated and working for donut. That is a big thing that I miss. Keep us updated and thanks
[G1 Android Development] FatBoyExtraordinaire:
Thank you very much for the help and quick response. Going to try when I get off work. Can't wait till your next update and I'm going to donate something when I come across some extra dollars.
[G1 Android Development] DavidChill:
awesome man, i'll be looking foward to that. :D

Keep up the great work and the excellent support, you've made our phone's so much better. one thing is for sure, you definitely deserve those beers. :)
[G1 Android Development] Meltus:
ok here's my completed 'Donut Fix' files. I tried to keep them as similar to the G7 files as possible (may be slightly different, as it will change depending on the ROM) but this is the best sound i can get from it atm.

Not much has changed since the last donut fix i posted (infact, only the compression amount has changed) so it will sound pretty similar.

Anyway, here is V1r2, V2r2, V3r2 and V6r2. i should hopefully be updating my app tonight with these, but it may end up being tomorrow. Enjoy testing!!!! :D
[G1 Android Development] oMszKikiIzWavyo:
YES, So this means we can Audio Hack CM 4.1.11.1 Rom. This is amazing
[G1 Android Development] Charrion:
That's good because looking at Cyanogen's twitter feed, it's starting to look once again like 4.1.11.1 may well be his last version.
[G1 Android Development] oMszKikiIzWavyo:
OMG really damn, we all have to SAVE CYANOGEN...PLEASE!!!
[G1 Android Development] Charrion:
It's not so much a matter of saving him as it is hiring a freaking legal team for him.

I'm sure he's got no problem with the technical aspects of this, it's the legal aspect that has become the killer.
[G1 Android Development] vigan8:
great job on the donut fix
[G1 Android Development] sstang2006:
put all three files on root of sdcard.

$su
#mount -o rw,remount /dev/block/mtdblock3 /system
#mkdir /sdcard/AudioBackUp
#cp /system/etc/AudioFilter.csv /sdcard/AudioBackUp
#cp /system/etc/AudioPara4.csv /sdcard/AudioBackUp
#cp /system/etc/AudioPreProcess.csv /sdcard/AudioBackUp
#rm /system/etc/AudioFilter.csv
#rm /system/etc/AudioPara4.csv
#rm /system/etc/AudioPreProcess.csv
#cp /sdcard/AudioFilter.csv /system/etc
#cp /sdcard/AudioPara4.csv /system/etc
#cp /sdcard/AudioPreProcess.csv /system/etc
[G1 Android Development] Meltus:
update: just tested the new files on every ROM i could find and they all seem to work fine. So i'll update the first post with the 'universal' zip!

Thanks for testing everyone, i'll be updating my app tomorrow. Right now i need some sleep :p

night night!
[G1 Android Development] IOmega666:
my drizzy rom has this audio hack, how can i delete it ? its barely hearable with this hack :S its too distorted, dont like this at all . plz tell me how can i delete it and have stock sound .
[G1 Android Development] Meltus:
follow the guide on the first page, but use the 'stock' files.
[G1 Android Development] sstang2006:
get the stock files from someone using drizzy rom and replace it using terminal emulator.
[G1 Android Development] IOmega666:
Thx !

I pushed stock files ^^
[G1 Android Development] FatBoyExtraordinaire:
Well I just tried pushing the 1.4 v2 files, and while the sound did get louder, I still don't record any audio. Am I doing something wrong, or am I going to have to wipe and re-flash and start again? Or will the latest version of your app be able to solve this issue for me. Any help is greatly appreciated.
[G1 Android Development] ryman1:
It's such a shame I still can't get this to work on my G1. I've tried every method(except method 2) of pushing the files. I tried Louder Volume hack v1.2 and v1.4 on JF1.5 The files were always pushed, but the volume never changed. Restating the phone/killing the media server made no difference.

I contacted Meltus quite a while ago, and he was stumped and suggested that maybe there was a problem with my ROM and I should try reflashing. I have since moved to fresh install of Cyanogen 4.0.4. I paid for the newest Audiohack off the market, and followed the included instructions at the startup exactly. Pushing files still does not cause any difference in volume, the media server obviously restarts as it restarts songs playing in the music player, but my phone is still quiet as ever.

Anyone have any thoughts? Here's what my system/etc folder looks like. I just applied V2R2 with Audiohack v2.0

# ls -l system/etc/A*
ls -l system/etc/A*
----rw-rw- 1 1000 1000 1891 Sep 29 06:10 system/etc/AudioFilter.csv
----rw-rw- 1 1000 1000 44542 Sep 29 06:10 system/etc/AudioPara4.csv
-rw-rw-rw- 1 0 0 52471 May 22 17:09 system/etc/AudioPara_TMUS.csv
----rw-rw- 1 1000 1000 5639 Sep 29 06:10 system/etc/AudioPreProcess.csv

Yes, I've restarted my phone. Yes, my volume is up all the way. No, I'm pretty sure I'm not "just doing something wrong"(but if you really think I am, please say so).

Any help would be greatly appreciated.
[G1 Android Development] crypticc:
Pushed to my phone, vol fine. Recording works subject to my prior issues with magic microphone.

Fantastic job.

Chris
[G1 Android Development] Meltus:
AudioHackv2.1 is out guys!

Every version now has the Donut fix and should work on every ROM!!!

And ryman, i posted a reply but i i have no idea where it's gone.

Basically, where yours says

----rw-rw-

mine says:

-rwxrwxrwx

:)

dunno if this is of any use to you. am i using a Hero ROM though. :P
[G1 Android Development] ryman1:
Meltus, thanks for the reply even though you lost your original reply. :(

I just tried version 2.1 with no luck, but wasn't really expecting otherwise.

So I ran a chmod 777 on all the csv files via adb to make the permissions look like yours. It didn't make any difference even after rebooting. Pushing the files again with Audio Hack reset the permissions back to how they were originally. Might just be a difference from the Hero rom? I have no idea. Anything else from your lost reply that I might be able to try?

Thanks again for the replies, I know you're a busy dude and it takes a lot to go through and reply to everyone's crap.