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

Cannot make it work with alsa #1

Open
mittorn opened this issue Feb 15, 2015 · 2 comments
Open

Cannot make it work with alsa #1

mittorn opened this issue Feb 15, 2015 · 2 comments

Comments

@mittorn
Copy link

mittorn commented Feb 15, 2015

Alsa dmix module uses shmget syscall. I have preloaded emulation library, but it seems to call shmget direcly.
Is there any way to override functions from libasound?

@pelya
Copy link
Owner

pelya commented Feb 15, 2015

libasound is not accessible to regular apps on Android, adding shmem
library won't make it work.

Debian noroot uses pulseaudio with pipe to pass audio stream to Java layer,
that setup is not very reliable though.
On Feb 15, 2015 10:08 AM, "mittorn" [email protected] wrote:

Alsa dmix module uses shmget syscall. I have preloaded emulation library,
but it seems to call shmget direcly.
Is there any way to override functions from libasound?


Reply to this email directly or view it on GitHub
#1.

@mittorn
Copy link
Author

mittorn commented Feb 24, 2015

libasound works when dmix is not enabled in asound.conf, so shm should help.
Problem was that LD_PRELOAD does not work when wrapped/replaced functions are called from same library (like shmget from libc directly).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants