112 pagesV  « < 83 84 85 86 87 88 > »  
 
REPLY
> Modification and improvement of sound quality | 4.0+
Roman_city
Message#1
26.09.17, 13:10
Experienced
******
[offline]

Group: Friendssavagemessiahzine.com
Messages 692
Check in: 02.01.12
Xiaomi Mi 8

Reputation:-  190  +

����������� � ��������� �������� ����� ������� | Modification and improvement of sound quality android download



Android: 4.0+

This topic was created to improve and enhance the sound characteristics of android devices, where everything is described in detail from simple actions in build.prop, ending with the introduction of third-party audio libraries into your smartphone.

I will update the topic in the course of time

For all actions, you will need to have root rights

Sampling and audio bitrate
Go to /system/etc/audio_policy.conf
Responsible for the sound from the speaker and headphones
Find the strings
audio_hw_modules {
primary {
outputs {
primary {
sampling_rates 48000
channel_masks AUDIO_CHANNEL_OUT_STEREO
formats AUDIO_FORMAT_PCM_16_BIT
devices AUDIO_DEVICE_OUT_SPEAKER | AUDIO_DEVICE_OUT_WIRED_HEADSET | AUDIO_DEVICE_OUT_WIRED_HEADPHONE | AUDIO_DEVICE_OUT_ALL_SCO | AUDIO_DEVICE_OUT_AUX_DIGITAL
flags AUDIO_OUTPUT_FLAG_PRIMARY
}
}


Bluetooth headset settings
Find the strings
a2dp {
outputs {
a2dp {
sampling_rates 44100
channel_masks AUDIO_CHANNEL_OUT_STEREO
formats AUDIO_FORMAT_PCM_16_BIT
devices AUDIO_DEVICE_OUT_ALL_A2DP
}
}
}

We change the parameters, the higher the better the sound quality, some of the system may not pull and there will be a cod or the sound will disappear, then set the values ​​below.
Start by raising the bit rate, then increase the frequency of discrimination
For their entry into force, you will need to restart
Responsible for the frequency of the discrimination of audio, change to48000 96000 192000 384000 576000 768000576000,768000 for pc versions of androids
sampling_rates 48000
It happens that the system does not support 24 and works 8_24 instead.
If a weak amplifier is built in, the sound may become very quiet but it will not stutter (it is not possible to raise the volume level, even programmatically)
Responsible for audio bitmap
formats AUDIO_FORMAT_PCM_16_BIT

List of formats, by quality
AUDIO_FORMAT_PCM_16_BIT
AUDIO_FORMAT_PCM_24_BIT
AUDIO_FORMAT_PCM_24_BIT_PACKED
AUDIO_FORMAT_PCM_8_24_BIT
AUDIO_FORMAT_PCM_32_BIT
Configure /system/etc/audio_policy.conf
Optional functions, but in some devices the filter is already inserted and there will be no sound without it.
They may or may not work if there is no sound.
The code is inserted into the function.outputs, right afterprimary
samling_ratesandformatsshould be the same as inprimary(some may have lost sound, then do not install above 16/48)

Audio output flags
AUDIO_OUTPUT_FLAG_PRIMARY (primary audio output, used as standard on most devices)
AUDIO_OUTPUT_FLAG_DEEP_BUFFER (Deep Buffer)
AUDIO_OUTPUT_FLAG_FAST (fast audio output)

Filter, can positively and nadotivno affect the sound (not all will work)
fast {
sampling_rates 48000
channel_masks AUDIO_CHANNEL_OUT_STEREO
formats AUDIO_FORMAT_PCM_16_BIT
devices AUDIO_DEVICE_OUT_SPEAKER | AUDIO_DEVICE_OUT_WIRED_HEADSET | AUDIO_DEVICE_OUT_WIRED_HEADPHONE
flags AUDIO_OUTPUT_FLAG_FAST
}


Filter flags
AUDIO_OUTPUT_FLAG_FAST
AUDIO_OUTPUT_FLAG_RAW
AUDIO_OUTPUT_FLAG_SLOW
AUDIO_OUTPUT_FLAG_WAV

Deep buffer
If the primary buffer flag is already enabled, then this is not necessary.
deep_buffer {
sampling_rates 48000
channel_masks AUDIO_CHANNEL_OUT_STEREO
formats AUDIO_FORMAT_PCM_16_BIT
devices AUDIO_DEVICE_OUT_SPEAKER | AUDIO_DEVICE_OUT_WIRED_HEADSET | AUDIO_DEVICE_OUT_WIRED_HEADPHONE
flags AUDIO_OUTPUT_FLAG_DEEP_BUFFER
}


Compression in the headphone output is better not to use at all, there will be a loss in quality
For a2dp profile it is sometimes useful
compress_offload {
sampling_rates 48000
channel_masks AUDIO_CHANNEL_OUT_MONO
formats AUDIO_FORMAT_FLAC
devices AUDIO_DEVICE_OUT_EARPIECE
flags AUDIO_OUTPUT_FLAG_DIRECT
}

The list of audio compression formats from the highest to the lowest quality (this is not the entire list, but the most normal ones) (not all will be supported)
AUDIO_FORMAT_FLAC
AUDIO_FORMAT_ALAC
AUDIO_FORMAT_APE
AUDIO_FORMAT_VORBIS
AUDIO_FORMAT_WMA
AUDIO_FORMAT_WMA_PRO
AUDIO_FORMAT_MP3

Flags for compression
AUDIO_OUTPUT_FLAG_DIRECT (direct audio output)
AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD (compresses the discharge at the output)
AUDIO_OUTPUT_FLAG_NON_BLOCKING (audio output is not blocked)
Connecting 64 bit audio library instead of 32 bit
Make sure that lib64 has a folder and files in soundfx.
Log in /system/etc/audio_effects.conf
And change lib to lib64
/system/etc/audio_effects.conf
bundle {
path /system/lib64/soundfx/libbundlewrapper.so
}
reverb {
path /system/lib64/soundfx/libreverbwrapper.so
}
visualizer {
path /system/lib64/soundfx/libvisualizer.so
}
downmix {
path /system/lib64/soundfx/libdownmix.so
}
loudness_enhancer {
path /system/lib64/soundfx/libldnhncr.so
}
ALSA driver, its installation and configuration
In some devices this library is already installed, you can check in / system / bin alsa_ctl files should be alsa_aplay alsa_amixer (/system/lib/libasound.so sometimes only a library without binaries)
Installation
To run use the codeenter in the terminal
#! / system / bin / sh
mount -o rw, remount / system
mkdir / system / etc / alsa
chmod 0755 / system / etc / alsa
f = / system / etc / alsa / $ (cat /proc/asound/card0/id).state
alsa_ctl -f $ f store
chmod 0644 / system / etc / alsa / *
alsa_ctl -f $ f restore
mount -o ro, remount / system

Expand all files in folders from the archive, and give permission
Edit file permissions
/ bin / alsa_amixer 0755
/ bin / alsa_aplay 0755
/ bin / alsa_ctl 0755
/lib/libasound.so 0644
/ usr / share / alsa // all folders 0755, all files in the alsa 0644 folder

Driver for 32/64 bit processors:Attached filealsa_32bit.zip(405.16 KB)
(Restriction androyd from 4 to 6 above will not work)

Supplement put in / system / lib / hw with rights 0644 (can both positively and negatively affect the sound):Attached filealsa.default.so.zip(12.96 KB)


Ready script to run alsa:Attached filealsa.sh.zip(272 bytes)


# Non-standard
It has a high-quality audio processing algorithm.
Install with replacement, if this library is available in /system/lib/libasound.so, if it is not useless (perhaps there is an effect, but not sure) there should be no alsa binaries in / system / bin, otherwise the sound will disappear from the backup library,make a copy of the original for safety :)
Samsung GS8 + asound library:Attached filealsa_asound_sgs8 + .zip(262.15 KB)

Check ALSA works or not
Enter the code in the terminal
mount -o rw, remount / system
mkdir / system / etc / alsa
chmod 0755 / system / etc / alsa
f = / system / etc / alsa / $ (cat /proc/asound/card0/id).state
alsa_ctl -f $ f store
chmod 0644 / system / etc / alsa / *

The /system/etc/alsa/map_map.state file appears in the folder.
Then enter this command
alsa_ctl -f $ f restore
The sound will disappear for a while after it is turned on again, then the library is connected (if the sound does not appear, connect and disconnect the headphones)

Instructions for setting up ALSA

Third-party (ported) sound libraries
All audio libraries are usually stored in / system / lib (lib64) / soundfx
A list of standard effects with a description:
/libaudiopreprocessing.so
Audio pre-processing - processing of unprocessed sound before applying effects, cleaning bad areas and overloads in a track after alignment and normalizing sound to a specified level.
/libbundlewrapper.so
Low Frequency Amplifier and Normalizer
/libdownmix.so
Convert multichannel sound to dual channel
/libldnhncr.so
Enriching the stereo image of the incoming sound
/libreverbwrapper.so
Reverberation
/libvisualizer.so
Responsible for displaying visualization
Setting and connecting audio libraries
Connecting libraries using the example of a standard bass amplifier, the library is in libraries {up to closing brackets}
1. The line is responsible for the name and opens with a bracket.
2. String library location
3. Closing the function
With the library, there are unique uuid effects (sometimes they are not), added to effects {}
1. String effect name
2. The string name of the library that was written above.
3. String with uuid
4. Closing effect

libraries {

bundle {
path /system/lib64/soundfx/libbundlewrapper.so
}
}
effects {

bassboost {
library bundle
uuid 8631f300-72e2-11df-b57e-0002a5d5c51b
}
}



Standard (improved), superior to most libraries in processing quality
Just put the replacement in / system / lib / soundfxassigning them the right 0644
For 64 bit, check both, the sound is very different
Library list:
/libbundlewrapper.so
/libldnhncr.so
/libreverbwrapper.so
/libdownmix.so

They work on both 32 two and 64 bit processors:Attached filestandard_32bit.zip(83.28 KB)


Libraries put in / system / lib64 / soundfx with replacement
For 64 bit processors:Attached filestandard_64bit.zip(80.33 KB)


Adapted libraries to optimize sound for 32/64 bit processors
Libraries took from 6 androids, but should work on the versions below, since they are universal
IMPORTANT make backup system partition can not guarantee 100% of the libraries (the phone may hang on the eternal animation), you can go through one by one and watch how the smartphone behaves
Installation: transfer all libraries with replacement to / system / lib and give rights0644
You can simplify the process of editing rights
su# get root
mount -o rw, remount / system# translation of the system partition in the record
chmod 0644 /system/lib/*.so# change of rights

Library list:
/libaudioflinger.so
/libaudioresampler.so
/libaudiospdif.so
/libaudioutils.so
/libeffects.so
/libinput.so
/libinputflinger.so
/libsonic.so
/libsonivox.so
/libsoundtrigger.so
/libspeexresampler.so
/libwebrtc_audio_coding.so
/libwebrtc_audio_preprocessing.so


In general, increases the overall volume, clarity, bass.
Attached fileaudio_engine.zip(1.24 MB)


Samsung Galaxy S8 audio engine port
Beats Libraries
Sound effects port
Codecs from SONY, Samsung and other devices
Useful information
Restart the interface, so as not to wait for a long reboot, the changes also take effect
su
am restart
Sound modifications
useful links


Post has been editedderak1129 - 28.04.19, 04:18
Reason for editing: Making sound at the flagship level.
Jakison
Message#1682
20.03.19, 19:48
User
****
[offline]

Group: Friendssavagemessiahzine.com
Messages 65
Check in: 04.11.11
Sony Xperia XA

Reputation:-  0  +

Papadim1002 @ 03/20/2019 07:15*
* shuchvadim, but in any way, apparently in the driver, it is written in the kernel, although the parameters change when porting the file ....


I found a similar thing, but there are codecs in the core, or as I understand it, the work of the volume slider, in different speakers, etc. Experts, what do you say, there are no options to somehow revive the volume in sony xa?
shuchvadim
Message#1683
20.03.19, 20:04
Banned
*********
[offline]

Group: Friendssavagemessiahzine.com
Messages 14238
Check in: 05.03.14
Xiaomi Redmi Note 5A 2/16

Reputation:-  1238  +

* androiddroiddroid, look in the subfolder or in vendor / etc

Posted 03/20/2019 at 20:06:

* JakisonSony has a good sound and so. And what exactly fails?
Jakison
Message#1684
20.03.19, 20:23
User
****
[offline]

Group: Friendssavagemessiahzine.com
Messages 65
Check in: 04.11.11
Sony Xperia XA

Reputation:-  0  +

Shuchvadim @ 03/20/2019, 20:04*
* androiddroiddroid, look in the subfolder or in vendor / etc

Posted 03/20/2019 at 20:06:

* JakisonSony has a good sound and so. And what exactly fails?

To put it mildly, you can hear the bass in the headphones, but the middle ones are high, somewhere far away in depth ... I changed the mass of headphones, installed dolby and viper, it helped, but the sound became lousy, which is not possible to listen. Other teeofones on mtc compared With sony xa, just beasts. Already thought to change it to hell, but got used to it.
shuchvadim
Message#1685
20.03.19, 20:36
Banned
*********
[offline]

Group: Friendssavagemessiahzine.com
Messages 14238
Check in: 05.03.14
Xiaomi Redmi Note 5A 2/16

Reputation:-  1238  +

* Jakison, so on viper you just have to turn on the restoration xhifi pull high and medium.
maili
Message#1686
20.03.19, 21:00
Local
*****
[offline]

Group: Friendssavagemessiahzine.com
Messages 340
Check in: 10.04.17
Samsung Galaxy S7 SM-G930

Reputation:-  62  +

Tell me. How can I reduce the sound of the speaker during a conversation ..? those. I would like the volume slider to be removed to zero, or almost zero, because Pts loud even at the set minimum ...
SM G930S, root, LOS 14.1, Android 7
With mixer_paths I tried to experiment - to no avail ...
Attached filemixer_paths_0.xml(52.65 KB)

Can anyone help ...?
Or lucidly explain
If you need some more files I will throw off ...

Post has been editedmaili - 20.03.19, 21:02


--------------------
A computer does more work than a person because it doesn’t have to answer the phone ....
shuchvadim
Message#1687
20.03.19, 21:15
Banned
*********
[offline]

Group: Friendssavagemessiahzine.com
Messages 14238
Check in: 05.03.14
Xiaomi Redmi Note 5A 2/16

Reputation:-  1238  +

* mailiAlsa mixer tried (program)? There , online "you can change the value
maili
Message#1688
20.03.19, 22:18
Local
*****
[offline]

Group: Friendssavagemessiahzine.com
Messages 340
Check in: 10.04.17
Samsung Galaxy S7 SM-G930

Reputation:-  62  +

* shuchvadim,
I can not deal with AlsaMixer.
What is there to change? There are many different lines, but which one is responsible for the volume during a conversation I don’t understand ...
Attached Image
Attached Image

Yes, the speaker still wheezes a little. It is observed only on AOSP firmware. On other custom, it does not wheeze.

Post has been editedmaili - 20.03.19, 22:24


--------------------
A computer does more work than a person because it doesn’t have to answer the phone ....
shuchvadim
Message#1689
20.03.19, 22:25
Banned
*********
[offline]

Group: Friendssavagemessiahzine.com
Messages 14238
Check in: 05.03.14
Xiaomi Redmi Note 5A 2/16

Reputation:-  1238  +

* maili, I can't say anything here. Just press and watch where the numbers are greater than 1 and change them when talking. (I checked including the operator’s service menu)
maili
Message#1690
20.03.19, 22:32
Local
*****
[offline]

Group: Friendssavagemessiahzine.com
Messages 340
Check in: 10.04.17
Samsung Galaxy S7 SM-G930

Reputation:-  62  +

* shuchvadim,
And you can not say where in the firmware can be spelled out ...?
It's easier for me to edit the firmware :)


--------------------
A computer does more work than a person because it doesn’t have to answer the phone ....
shuchvadim
Message#1691
20.03.19, 22:36
Banned
*********
[offline]

Group: Friendssavagemessiahzine.com
Messages 14238
Check in: 05.03.14
Xiaomi Redmi Note 5A 2/16

Reputation:-  1238  +

* maili, never to be known. Maybe Aerospace block
Dubsteplover
Message#1692
21.03.19, 00:48
Old resident
*******
[offline]

Group: Friendssavagemessiahzine.com
Messages 816
Check in: 15.01.16
Samsung Galaxy A3 (2017) SM-A320F / DS

Reputation:-  28  +

How to increase the headphone volume in the Samsung Galaxy A3 2017, firmware Lineage 16?
papadim1002
Message#1693
21.03.19, 01:44
Veteran
********
[offline]

Group: Friendssavagemessiahzine.com
Messages 1623
Check in: 23.03.17

Reputation:-  114  +

* Jakison, put the samsung engine from the cap on mtk, it straightens the frequency well well and the effects work fine, but you have to edit the effect there, well, or a corrected lady if you can’t do it yourself ....
artovret
Message#1694
21.03.19, 02:32
Local
*****
[offline]

Group: Friendssavagemessiahzine.com
Messages 203
Check in: 26.01.12
Meizu Pro 5

Reputation:-  10  +

changed lines
a2dp {
outputs {
a2dp {
sampling_rates 44100
channel_masks AUDIO_CHANNEL_OUT_STEREO
formats AUDIO_FORMAT_PCM_16_BIT
devices AUDIO_DEVICE_OUT_ALL_A2DP
}
}
}

on the ninth android. nothing changed
Attached Image


--------------------
phone:Sony X8, Sony Sola, LG Nexus4, OnePlus One, OnePlus Two Meizu Pro 5]Oneplus3
audio: xiaomi hybrid
Jakison
Message#1695
21.03.19, 07:02
User
****
[offline]

Group: Friendssavagemessiahzine.com
Messages 65
Check in: 04.11.11
Sony Xperia XA

Reputation:-  0  +

Papadim1002 @ 03/21/2019, 01:44*
* Jakison, put the samsung engine from the cap on mtk, it straightens the frequency well well and the effects work fine, but you have to edit the effect there, well, or a corrected lady if you can’t do it yourself ....


I will definitely try, but I’ll have to sew up the flash, because from the atmosphere and the wiper, now I’ll have to cut everything out so that I can put everything in clean order!
prototip1974
Message#1696
21.03.19, 07:11
Veteran
********
[offline]

Group: Friendssavagemessiahzine.com
Messages 1862
Check in: 04.04.09
Oukitel K6000 Pro

Reputation:-  172  +

* papadim1002
And can you throw off the corrected effects? Also MTK processor.


--------------------
Oukitel K6000 Pro android 7.0, Asus Memo Pad 7 ME572CL, Andoid 5.0 root.
prototip1974
Message#1697
21.03.19, 07:45
Veteran
********
[offline]

Group: Friendssavagemessiahzine.com
Messages 1862
Check in: 04.04.09
Oukitel K6000 Pro

Reputation:-  172  +

Papadim1002 @ 03/21/2019, 01:44*
Put the Samsung engine from the cap on mtk, it straightens the frequency well
Version exactly 2 set or the latest, 4yu?


--------------------
Oukitel K6000 Pro android 7.0, Asus Memo Pad 7 ME572CL, Andoid 5.0 root.
papadim1002
Message#1698
21.03.19, 11:09
Veteran
********
[offline]

Group: Friendssavagemessiahzine.com
Messages 1623
Check in: 23.03.17

Reputation:-  114  +

* Jakison, atmosphere and wiper have a library in soundfx, apk and record in effect, delete apk, set the original effect from the firmware and delete libraries in soundfx
skukryniks
Message#1699
21.03.19, 11:09
Novice
***
[offline]

Group: Active users
Messages 42
Check in: 12.07.13
Kyocera Brigadier

Reputation:-  2  +

Good afternoon, I ask for help on setting up the mixer_paths.xml Kyocera Brigadier
Android 5.1.1
Chipset:
MSM8928, Qualcomm® Snapdragon ™ 400 processor
with 1.4GHz quad-core CPU
Since this animal has no conversational dynamics, but only the Smart Sonic Receiver and loudspeaker.
The sound quality of the Smart Sonic Receiver and through the speaker is different
I attach 2 files with the record and the file mixer
Attached filemixer_paths.xml(50.52 KB)

Attached filebad.wav(5.88 MB)

Attached fileok.wav(5.22 MB)


Post has been editedskukryniks - 21.03.19, 11:14


--------------------
Condoms "Nokia"- Connecting people!
papadim1002
Message#1700
21.03.19, 11:35
Veteran
********
[offline]

Group: Friendssavagemessiahzine.com
Messages 1623
Check in: 23.03.17

Reputation:-  114  +

* artovret, the standard bluetooth driver supports a maximum of 16bit and 48000kgz, it supports, therefore it did not affect, without editing, this is the maximum bitrate
papadim1002
Message#1701
21.03.19, 11:41
Veteran
********
[offline]

Group: Friendssavagemessiahzine.com
Messages 1623
Check in: 23.03.17

Reputation:-  114  +

* prototip1974And the Samsung engine has already been installed? And depending on what kind of android you have, I have a maximum for my body until the sixth android came up, if the android is higher than sixth and you can not edit anything, although in fact mtk may not be able to layer vendor effects On the effects of systems, you need to look at the firmware, if the effects are only in the system or vendor, you will most likely have to edit the effect ....

112 pagesV  « < 83 84 85 86 87 88 > » 


 mobile version    Now: 05/20/19 06:52