Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: audio over usb crackly (buffer underflow), alioth #526

Open
5 tasks done
defvs opened this issue Sep 28, 2024 · 1 comment
Open
5 tasks done

bug: audio over usb crackly (buffer underflow), alioth #526

defvs opened this issue Sep 28, 2024 · 1 comment
Assignees
Labels
bug Something isn't working needs-more-info Further information is requested

Comments

@defvs
Copy link

defvs commented Sep 28, 2024

Issue type

Feature not working as intended

Device

alioth

crDroid version

crDroid 10

Exact version / Build date

10.8/2024-09-27

Bug description

Similar bug to #479

It seems to have been fixed for most apps, however some apps such as Plexamp still have issues with audio over a USB DAC (mine is a FIIO KA11).

Playing audio results in a logcat spam of:

09-28 18:43:21.487 W/audio_hw_primary(1128): out_get_presentation_position: avail:1008 > kernel_buffer_size:1008 clamping!
09-28 18:43:21.489 W/audio_hw_primary(1128): out_write: underrun(93639) frames_by_time(638) > out->last_fifo_frames_remaining(504)

As well as audio crackle, making it unusable.

Steps to reproduce

.

Relevant log (logcat/build log)

.

Screenshots or videos

No response

Solution

It seems like keeping the CPU busy (enabling the visualizer of Plexamp, for example) makes the issue disappear. However, I guess it is an issue with the buffer being too small by default.

Additional context

No response

Acknowledgements

  • I've checked device is officially supported (for device specific reports and not source related).
  • I'm running latest version available on crdroid.net for this device
  • I have searched the existing issues and this is a new and no duplicate or related to another open issue.
  • I have written a short but informative title.
  • I filled out all of the requested information in this issue properly.
@defvs defvs added bug Something isn't working needs-triage labled for new issues in order to confirm viewed and directed properly labels Sep 28, 2024
@gwolf2u gwolf2u removed the needs-triage labled for new issues in order to confirm viewed and directed properly label Oct 6, 2024
@raystef66
Copy link
Member

raystef66 commented Oct 13, 2024

Since I fixed most of the USB audio issues on previous builds (#479) due to some changes in audio_policy_configuration.xml , this would be a tougher one since imo only app related and not a general issue atm.
You stated all's working on VLC and no underruns, only Plexamp right?
For what it's worth, did you try any other roms to rule out some source issue?
Did it ever worked well on previous crDroid builds for that matter?

@gwolf2u gwolf2u added the needs-more-info Further information is requested label Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-more-info Further information is requested
Projects
Status: Devices
Development

No branches or pull requests

3 participants