Jump to content

Mehrshad Shafaghi

Approved Members
  • Posts

  • Joined

  • Last visited

 Content Type 




Poweramp Knowledge Base

База знаний Poweramp


Poweramp Equalizer Knowledge Base

База знаний Poweramp Equalizer

Posts posted by Mehrshad Shafaghi

  1. I have a Redmi K20 Pro running pie based AOSIP custom rom. I experience this on MIUI and Lineage OS as well.

    The Output status is telling me that when I use OpenSL ES output I have 16bit output and a total of 2880 audioframes processed (statistically speaking. I don't care about *numbers. I donno how it even works)

    But a terminal check gives me other results:

    Output thread 0xf3f03640, name AudioOut_D, tid 1536, type 0 (MIXER):
      I/O handle: 13
      Standby: no
      Sample rate: 48000 Hz
      HAL frame count: 192
      HAL format: 0x6 (AUDIO_FORMAT_PCM_24_BIT_PACKED)
      HAL buffer size: 1152 bytes
      Channel count: 2
      Channel mask: 0x00000003 (front-left, front-right)
      Processing format: 0x5 (AUDIO_FORMAT_PCM_FLOAT)
      Processing frame size: 8 bytes
      Pending config events: none
      Output device: 0x4 (AUDIO_DEVICE_OUT_WIRED_HEADSET)
      Input device: 0 (AUDIO_DEVICE_NONE)
      Audio source: 0 (default)
      Normal frame count: 960
      Last write occurred (msecs): 0
      Total writes: 43966
      Delayed writes: 0
      Blocked in write: yes
      Suspend count: 0
      Sink buffer : 0xf40ce000
      Mixer buffer: 0xf49d7000
      Effect buffer: 0xf40c3000
      Fast track availMask=0xea
      Standby delay ns=3000000000
      AudioStreamOut: 0xf49c9e68 flags 0x6 (AUDIO_OUTPUT_FLAG_PRIMARY|AUDIO_OUTPUT_FLAG_FAST)
      Frames written: 42207360
      Suspended frames: 0
      PipeSink frames written: 42207360
      Hal stream dump:
      Thread throttle time (msecs): 0
      AudioMixer tracks:
      Master mono: off



    Is this expected? Or is it a bug? Should I ignore that?

  2. I have bought my redmi k20 pro recently. There's this new "hi-fi audio" switch under the "headphones and audio effects" page in settings which is new to me as I didn't have it in my older Redmi Note 3 pro or Redmi Note 4X. There are some issues when I turn on the switch:

    1. DVC: on results in a lower volume. The DVC volume problem isn't a new thing, right? You can totally get what I mean; the volume drops low even when you turn it all the way up. Makes it useless when playing songs in a car/noisy places.

    2. The Volume Knob isn't in sync with the actual volume level. Don't know how to put this. %100 volume on system equals to %60 volume on Poweramp. 61-100 volume on the knob doesn't make any change. Changes only appear in 0-60.

    These are the stuff I found. There might be some other problems that I don't know. I'll include the output detection log.

    Using MIUI 10.3.16 china stable.



    New file.txt

  3. I wanted to ask for a built-in scrobbler for last.fm, libre.fm and ListenBrainz. Once you have em in your music player, there's no need for extra apps which take recources and consume battery since most of them may keep the device awake...

    Plus I guess it doesn't need much coding since the api for the three above is already available.

  4. On 11/15/2018 at 3:32 AM, Mehrshad Shafaghi said:

    From Android 7 to Android 9. Across all of the roms I had tried. Hi-res outputs always are downsampled to 48khz+16bit. Android 6 and below seem to be working fine. How can I prevent this?

    @maxmp Please help a brother out here. I remember I had talked to a couple of developers before and they claimed that the rom has the needed CAF patches.
    So the hi-res output works on android M and below (OEM rom or custom rom, both sides work) but in the next Android versions they seem to be always downsampling. I'm dying out of curiosity cause during this short time I had to spend with the older OEM rom I've fallen in love with Hi-res output again...

  5. 8 hours ago, majovajo said:

    Hi Max, I am sure that you are under heavy load now but I noticed an issue.
    I have a Oneplus One with latest Ressurection Remix ROM and on build 588 I could utilize the rom's function to control playback with volume buttons with locked screen.
    I haven't updated the rom but I installed the 705 (same on 706, 709) build and the playback control doesn't work for PAMP (for other players it does).
    Also doesn't work with offscreen gestures.

    Could you please check the issue if you have time for this? Maybe it would be helpful so that it doesn't end up in the final version.
    Thank you very much for your support and thanks for Poweramp. (Using since Symbian)

    Symbian? Interesting

  6. On 5/16/2018 at 3:59 PM, maxmp said:

    Many Huaweis - they are all on Kirin - support hi-res (for example, P20 series, Honor 8 Pro). If it doesn't detect it on your device, it means something differs there. You can try to extract build.props, and any of: /etc/audio_policy.conf, /vendor/etc/audio_policy.conf, /vendor/etc/audio_output_policy.conf and PM me with them - I can take a look and compare it with the Huaweis known to produce Hi-Res on internal DAC. 

    As far as I can tell, (esp. based on pure AOSP) custom ROMs rarely support Hi-Res. Quite specific patches (qualcomm caf in this case) are required - per specific SOC + all the mixer, DSP, DAC configs. 

    build.props, and any of: /etc/audio_policy.conf, /vendor/etc/audio_policy.conf, /vendor/etc/audio_output_policy.conf can make it a bit more clear, but even with these existing and being OK, these said patches should be in the system - as configs just don't work without appropriate code integrated into ROM.

    Andre, what is the exactly device/Hi Res variant?

    Will uploading those system files help you in debugging on different devices? If it does, I'll upload mine.

  • Create New...