Error: "No M8 audio device found"
Hello - I'm trying the app on my Win desktop to connect to M8 and I get an error about "No M8 audio device found". The app only runs if I specify -noaudio option, but then I lose ability to get audio through the desktop. If it matters, the M8 is connected via original USB cable, so that shouldn't be affecting it. Thanks.
I'm having the same issue on Ubuntu
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04 LTS
Release: 22.04
Codename: jammy
$ sudo target/release/rm8 -list
M8 found:
- /dev/ttyACM0
$ sudo target/release/rm8
Error: "No M8 audio device found"
The UI runs correctly if I specify -noaudio
I did some debugging and found that my device name was "M8, USB Audio". The check for the name here didn't pick up this variation automatically https://github.com/booss/rm8/blob/master/src/audio.rs#L68
It might be nice to output possible audio device names as part of the -list command.
In my case it is called "Digital Audio Interface (M8)". I tried changing the code to check if audio device name contains "M8" and that got the app to run, but no audio was heard. It was still going only through M8's speakers. In any case, having a way to tell app which audio device to use if it cannot detect itself would be a good addition.
Hi, the same here (RPi 3):
pi@raspberrypi:~/rm8/target/release $ ./rm8 Error: "No M8 audio device found"
pi@raspberrypi:~/rm8/target/release $ ./rm8 -list M8 found: - /dev/ttyACM0
Hi, sorry for the late answer.
Audio is highly experimental as I have no real control on how it works under the hood (wrt latency etc.).
Also it hasn't been tested on windows or other linux distro (I use arch) and on other platform.
I don't know exactly what SDL is doing with audio devices.
I hard coded the name for quick testing but did not finish implementing something stable enough.
Anyway, I'm not sure doing that kind of software loopback is the way to go.
I wanted to try other sound libraries but I won't have the time to investigate that as I'm currently working on other stuffs.
I"m not using rm8 at all these days (I'm using my m8 directly in my bed or on my couch).
To anyone: feel free to submit a PR if you find something decent.
tnx for answer anyway, B regards.
I started looking at this, and by doing if device_name.contains("M8") for the device-check, it seems to find it more often. I still don't get sound on my Mac x86_64, but it seems like it might be better for other targets, and it will lat least start (and I can use quicktime player to listen, like m8c.) I will make a PR.
adding to this issue: doesn't find the m8 on macos even though m8c does find it.
works with these options Running `target/release/rm8 -cap M8`
but there is a graphical glitch:
https://github.com/booss/rm8/assets/19165952/e4a70eb7-68f6-47e5-902b-1567f53e9b31