T
Termux8mo ago
guyman

"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.
6 Replies
fisher
fisher8mo ago
could you share the code you have written?
guyman
guymanOP8mo 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
guymanOP8mo ago
only really need to change the top of the code to have it work in termux once again
guyman
guymanOP8mo ago
this should work in termux
fisher
fisher8mo ago
my termux-usb -r command asks for permission and then just hangs, audio still works tho
guyman
guymanOP8mo 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