"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
could you share the code you have written?
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
only really need to change the top of the code to have it work in termux once again
this should work in termux
my
termux-usb -r
command asks for permission and then just hangs, audio still works thoit doesnt hang u just gotta wait a long time on android14
like 30-60 seconds