

Yeah, it’s likely just a buffer needs to be filled with amplitude samples, and sample frequency plus bit depth needs to be programmed (and volume). Then from there it’s just a matter of adding codecs to decode/decompress various audio formats from media (which would be the same code as on desktops, though complied for ARM or whatever instruction set the phone’s CPU uses).
Oh also, there’ll be determining the method it handles multiple channels (separate buffers or some sort of interleaving in a single buffer?).
And then adding virtual buffers can help with output device management, as each output might use a different buffer, so having apps writing their audio to a virtual buffer means your code can manage things like the user switching from phone speaker to aux cable or bluetooth (which is a whole other beast and involves encoding the audio to specific codecs to make up for the relatively low bandwidth available).
Though whatever is already there could add complexity, but my guess is it’s just a matter of matching memory mapped addresses up and then the existing linux audio code will handle the rest.






Ah that sucks, I like KBM but it seems like a good controller candidate as it just needs two vectors (movement and aiming) plus two buttons (at least as far as I got so far, there’s only main fire and secondary fire). Sounds like something that shouldn’t even take long to implement with steam input.
I actually just used steam input for the first time yesterday and thought you might be referring to the same thing as it was annoying during the process of figuring out the correct setup. It’s a Nintendo layout but was being detected as an Xbox layout, so all the buttons were reversed. Either that or Binding of Isaac deliberately set up the controls to be counter-intuitive and my using steam input to remap to more intuitive controls is cheating lol. And it didn’t help that I had another controller that also identifies as an xbox controller and spent some time remapping that one and wondering why it wasn’t doing anything in the game before I noticed it was being picked up (but doesn’t really function so I didn’t even realize it was still plugged in).