Does the GetNumDrivers function work under Linux using ALSA?
I am writing a cross-platform app in which you can choose the soundcard to use for its output and have run into a problem.
Everything else I’m using FMOD for works great on both platforms, but I can’t seem to get it to return anything other than 0 for the number of devices using the same code that I use successfully for Win32. I’m guessing that this isn’t supported under Linux, but it is entirely possible (likely even, heh) that I’m doing something wrong.
- Isaac1357 asked 9 years ago
GetNumDrivers sould work fine, if it is reporting 0 then it means there are no enumerated devices. This could be either you have no sound card in the linux machine you are testing with or your machine isn’t setup correctly for the output mode you have chosen.
Are you checking all functions for returned errors? this would indicate any problems with the output mode. ALSA is hardwired to atleast have one device ("default") so one of the FMOD functions must be returning an error.
Thanks for the info. I’ll look at the problem more closely since I know it should be working. I know that ALSA is working OK, and FMOD actually outputs sound just fine initialized to use device 0, which was why I thought that maybe the function just wasn’t implemented on Linux.
I appreciate the reply, I’ll play with it tomorrow and see if I can get it working or at least figure out why it’s not.
- Isaac1357 answered 9 years ago
Please login first to submit.