[MOD][Audio] Stereo Mod for mi4c

kevinkvothe

Senior Member
Dec 27, 2014
72
32
0
Hi everybody. I've ported a mod for our device that allows to reproduce media through the main speaker and the earpiece at the same time, giving a truely sensation of "surround" sound.

Features:
  • "Dual" speaker

Source:
https://github.com/kevinkvothe/Libra-Audio-Mod

Feel free to contribute to this mod.

Bugs:
Test and tell me.


It's reported to work on aqua (Mi4S). Needed to change permissions to 777 (read-write-execute). You can do this on almost any root explorer you find, I personally use ES File Explorer. (Thanks BlackXhorneT)


Credits:
sshafranko, as I took his mod to modify our source. :good:

Contributors:
kevinkvothe.

This mod is diretly ported from:
http://forum.xda-developers.com/nexus-5x/themes-apps/mod-surround-sound-testers-t3252659

Warning! Not tested on 5.1, I just report to work on CM based 6.0.1. I'm not responsible in any way of any damage that happens to your device if you test this mod. Do it at your own risk.

Installation:
For now, replace the stock mixer_paths.xml placed on /system/etc (you'll need a root explorer) with the one I provide in this post. Remember to make a backup before. :fingers-crossed:


Version Information
Status: Testing.
Current Stable Version: None by now.
First Release Date: 2016-06-13

Created: 2016-06-13
Last Updated: 2016-06-13
 

Attachments

Last edited:

BlackXhorneT

Senior Member
May 5, 2016
314
126
0
Norwich
Tested on Aqua,

This broke the ability for me to use any app that uses audio (youtube/apple music/stock music/mp3's in es explorer...) I've restored the old stock file and it's back to normal but that was quite a nasty result.

I think this needs more testing for general release and is not for aqua.

Otherwise, love the idea. If you get it working I'll happily try another build as I know restoring the original file works just fine. Good luck with the project

---------------

EDIT:

This may be a permissions issue as its set to 660 rather than 777. No file manager I've got will successfully change this over (root explorer, total commander, es...) so this may need to be done before putting in /system/etc/ in order to work correctly. Any suggestions on a chmod 777 app to try?

---------------

EDIT 2:

confirmed chmod 777 did the trick (permission change worked from /system/etc/ folder, but NOT from download folder. Seems to work! Apologies for my earlier scepticism. Interested to see how this will sound (can't really test as I'm currently at work).

Should be interesting :). Well done!
 
Last edited:

kevinkvothe

Senior Member
Dec 27, 2014
72
32
0
Tested on Aqua,

...

confirmed chmod 777 did the trick (permission change worked from /system/etc/ folder, but NOT from download folder. Seems to work! Apologies for my earlier scepticism. Interested to see how this will sound (can't really test as I'm currently at work).

Should be interesting :). Well done!
Thanks for your interest! I've already updated the post with the permissions info. That's strange, though, as in libra it works just fine with rw-r-r permissions and 777 is not needed.

Hope you enjoy it!
 

BlackXhorneT

Senior Member
May 5, 2016
314
126
0
Norwich
Thanks for your interest! I've already updated the post with the permissions info. That's strange, though, as in libra it works just fine with rw-r-r permissions and 777 is not needed.

Hope you enjoy it!
Happy to test :). I'll give you better feedback this evening once I'm not in the office. Should be interesting!

Sent from my Mi-4s using XDA-Developers mobile app
 
  • Like
Reactions: kevinkvothe
Oct 13, 2015
23
0
0
Thank you! This works perfectly , but unfortunately for me the speakers , headset and earpiece speaker too quiet . What values ​​do I have to change in order to make the louder?
 

kevinkvothe

Senior Member
Dec 27, 2014
72
32
0
To increase stock volume you should modify the RX1 or/and RX7 Digital Volume on the section <path name = "speaker"> or <path name = "speaker-gain-default">.

Yes. at least for me it works fine.

Regarding the android version, I've just tested it android 6, but feel free to try yourself and report back.
 

kurtxcobain

Senior Member
Jan 14, 2010
195
25
58
Alicante
I tried this mod in miui.eu last stable rom and it works but the front speaker sounds terribly distorted, so I had to go back to previous xml file.

Maybe the front speaker is not capable of reproducing sound with the same volume and fidelity as the main back speaker?

Thanks for your work anyway!
 

kevinkvothe

Senior Member
Dec 27, 2014
72
32
0
I tried this mod in miui.eu last stable rom and it works but the front speaker sounds terribly distorted, so I had to go back to previous xml file.

Maybe the front speaker is not capable of reproducing sound with the same volume and fidelity as the main back speaker?

Thanks for your work anyway!
Ofc, the front speaker is not designed to perform like the main one. This mod only provides a way to send media sound in a low volume through the front speaker, not to use it as the main media player.
 

kurtxcobain

Senior Member
Jan 14, 2010
195
25
58
Alicante
Ofc, the front speaker is not designed to perform like the main one. This mod only provides a way to send media sound in a low volume through the front speaker, not to use it as the main media player.
I undestand that, but with the mod (at least in miui.eu stable) the sound is terribly distorted.

Maybe there are some gain parameters that need fine tuning?
 
Last edited:

srslye

Senior Member
Feb 20, 2014
57
3
28
Works great on cm14.1

Is there anyway to turn the stereo effect off and simply have the front speaker repeating the mono signal?
I find that many songs don't sound right since they pan a significant instrument to one side, and when that is on the front speaker it can change the way a song sounds.
 
Last edited:
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone