T
Termuxguyman

"unmount" usb DAC when using termux-usb?

Hello, I have written a small C program to set the volume on my usb DAC and it seems to work when ran through termux-usb -e following the instructions here however I'm wondering if Termux has any method of "unmounting" the usb device after I'm done using it? If I am playing music through my dongle, as soon as I run termux-usb -r, the music stops, and doesn't start again until I unplug it and plug it back in. There are other applications (namely UAPP) that have an exit button and when exited properly, the dongle returns to working normally.
fisher
fisher15d ago
could you share the code you have written?
guyman
guyman15d ago
right now its slightly modified for debugging on a regular pc but even the example code from https://wiki.termux.com/wiki/Termux-usb, once I give termux access to the usb device I can't hear any sound anymore
guyman
guyman15d ago
only really need to change the top of the code to have it work in termux once again
guyman
guyman15d ago
this should work in termux
fisher
fisher15d ago
my termux-usb -r command asks for permission and then just hangs, audio still works tho
guyman
guyman15d ago
it doesnt hang u just gotta wait a long time on android14 like 30-60 seconds
Want results from more Discord servers?
Add your server
More Posts
pip not working in termux, giving out weird errors while it used to work beforeInstalling packages with pip worked before but now they dont i have been trying to fix this for 2 daThe goal is to disable the phantom process but on the same device using termux $adb . Android 13how can I do that.Does anyone know how to fix this?how to fix the issue of pty_setowner permission deniedI tried both sshd and dropbear#One ui audio problem helpCan someone guide me or help me Get audio back on termux after the One Ui 6.1 update?Permissions error when using npm.../Angular-Project/curso-angular $ npm install npm ERR! code EACCES npm ERR! syscall symlink npm ERSetting up proot distro on termux and getting graphical output on termux x11It's a complete mess to get a proot distro running and all the tutorials fail at some point during tlibicu breaks zenitylibicu/stable 75.1 breaks zenity which expects .74, how can I resolve this issue?Adding a shortcut of the `lynx` command to KISS launcher home screenHi, I want to add a shortcut for `lynx` to the KISS launcher home screen. It doesn't support widgetsundefined reference to `pwritev'I was trying to build master neovim, but i got this error from libuv. How do i work around it ?pulseaudio no sound termuxHello, I come to report a problem From termux, the audio doesn't work on my phone, it's a matepad 11Jupyter issue in termux arch Android 13I am using Arch linux (i also tried debian based linux(s) in hope of fixing this issue, tho did not How to restart python scripts automatically/werid python bugHello! I have a android 8.1 phone that I'm using termux on I have turned of all android battery opInstalling code-server on Termux Android 5I understand that alternatives exist such as vim / neovim, but this doesn't fufill what i need so I Helpmirror not accessiblethis photo was not mine, however our members have been experiencing this problem that he can't delet