Magisk-Modules-Alt-Repo / audio-misc-settings

A Magisk module for setting miscellaneous audio configuration values (media audio volume steps (100 steps), raising the resampling quality, disabling the effects framework, etc.)
GNU Affero General Public License v3.0
173 stars 12 forks source link

Need suggestion #11

Closed Azuriye closed 1 year ago

Azuriye commented 1 year ago

Hello! I've just came across your repo after a friend of mine suggested me to flash these modules to get bonestock audio out of Android without any of the unnecessary processing... I have a small issue. Well I've just got my FiiO BTR5 (Bluetooth DAC) when can stream LDAC @ 96kHz/32bit but I'm slightly puzzled because I'm aware that this module basically gets rids of all the audio processing and even third-party EQ softwares.

So basically I'm trying to know if it's worth flashing the module and living without a system wide EQ (like Wavelet, V4A, JDSP and etc.) or whether it's better to just ignore this module and flash the rest in order for me to have Effects Framework enabled? Like what would be the best scenario to approach this problem? I have Poweramp and that's the only music player which I'm using having a built-in EQ system for that app alone and it's working as intended most likely because it's not globally applying the EQ. Only issue is when it comes to system wide EQing for my headphones... Is it worth or not?

yzyhk904 commented 1 year ago

I think no effect framework (no interface to system wide equalizers, virtualizers, spatializers, etc.) is the best equalizer. The framework generates large jitter distortion even if no effects are enabled. This is the reason why UAPP and the like bypassing the mixer including the framework sound well.

I recommend using my another tool USB_SampleRate_Changer with "audio misc settings", which includes DRC remover (for Qcomm devices), a2dp hardware offload disabler (avoiding double resampling when bluetooth is used), and jitter-reducer features. Probably the jitter-reducer is better than using equalizers (I believe many people use them for reducing jitter distortion anyway).

Azuriye commented 1 year ago

I think no effect framework (no interface to system wide equalizers, virtualizers, spatializers, etc.) is the best equalizer. The framework generates large jitter distortion even if no effects are enabled. This is the reason why UAPP and the like bypassing the mixer including the framework sound well.

I recommend using my another tool USB_SampleRate_Changer with "audio misc settings", which includes DRC remover (for Qcomm devices), a2dp hardware offload disabler (avoiding double resampling when bluetooth is used), and jitter-reducer features. Probably the jitter-reducer is better than using equalizers (I believe many people use them for reducing jitter distortion anyway).

Hey thanks alot for replying to my question! Decided to just stick with disabling effects framework, use the three modules provided by you (DRC Remover, misc. and jitter...) and use Poweramp's built in EQ.

Lastly, is there anyway to check if my a2dp hardware offloader is disabled or not? Like in developer settings there's an option called turn off A2DP hardware offload and I've ticked it... Is this fine? Or is there some other way to disable it?

yzyhk904 commented 1 year ago

You can see it by checking the sample rate of the bluetooth output device through Poweramp's audio information. you use the a2dp hardware offload mode if the rate is 48kHz for LDAC 96kHz. You don't if the rate is 96kHz. If your phone is OnePlus or Xperia, set the audio output to be "OpenSL ES". Poweramp exceptionally uses "direct pcm" (bypassing the OS mixer) on "Hires output mode" for Oneplus and Xperia Qcomm devices.

You may disable the a2dp hardware offload by the tick. But some devices cannot do it by the tick. Then you can use "USB_SampleRate_Changer" for certainly disabling the offload.

Azuriye commented 1 year ago

You can see it by checking the sample rate of the bluetooth output device through Poweramp's audio information. you use the a2dp hardware offload mode if the rate is 48kHz for LDAC 96kHz. You don't if the rate is 96kHz. If your phone is OnePlus or Xperia, set the audio output to be "OpenSL ES". Poweramp exceptionally uses "direct pcm" (bypassing the OS mixer) on "Hires output mode" for Oneplus and Xperia Qcomm devices.

You may disable the a2dp hardware offload by the tick. But some devices cannot do it by the tick. Then you can use "USB_SampleRate_Changer" for certainly disabling the offload.

Most of my music files are around 44.1/48kHz Sample rate but Poweramp resamples them to 96kHz, it's even reporting that my output device sample rate is 96kHz/32bit so I assume it's working as intended?

yzyhk904 commented 1 year ago

So it seems. I think audio-misc-settings changes the resampling quality of the OS mixer better than that of Poweramp, so I recommend not to resample in Poweramp or use a music streaming app like Youtube music or Spotify app (except Amazon's).

Hkj1006 commented 1 year ago

Wait? We shouldn't use YouTube Music or Spotify after flashing these modules?

yzyhk904 commented 1 year ago

I think they have approximately master quality under very low jitter situations. Probably you don't need Hires. sources because such sources have lower distortion than them only under larger jitter situations.

It's jitter problem! If you very curious, try "jitter-reducer.sh" in USB_SampleRate_Changer. You can change the jitter level of your phone flexibly there.

Hkj1006 commented 1 year ago

I think they have approximately master quality under very low jitter situations. Probably you don't need Hires. sources because such sources have lower distortion than them only under larger jitter situations.

It's jitter problem! If you very curious, try "jitter-reducer.sh" in USB_SampleRate_Changer. You can change the jitter level of your phone flexibly there.

Thanks for the reply. I'll probably need to educate myself more on some technical terms to understand what you just explained so I am not gonna bother you by asking obvious questions 😅. Anyways it seems after installation the DRC remover and miscellaneous audio settings modules I can no longer use any sort of Equalizer (I use Equify pro for gain in low audio videos on YouTube). Do you have any suggestions for that. Thank you

yzyhk904 commented 1 year ago

Thanks for the reply. I'll probably need to educate myself more on some technical terms to understand what you just explained so I am not gonna bother you by asking obvious questions 😅. Anyways it seems after installation the DRC remover and miscellaneous audio settings modules I can no longer use any sort of Equalizer (I use Equify pro for gain in low audio videos on YouTube). Do you have any suggestions for that. Thank you

Additionally I recommend using audio-jitter-silencer, which reduces jitter considerably and automatically (conveniently). Perhaps you could hear the difference.