jarikomppa / soloud

Free, easy, portable audio engine for games
http://soloud-audio.com
Other
1.79k stars 285 forks source link

Change playback device #332

Open geovannimp opened 3 years ago

geovannimp commented 3 years ago

I read the documentation but didn't found mentioning about that.

It's possible in some way to change the playback device?

jarikomppa commented 2 years ago

You can shut down SoLoud and initialize it with a new one. Pretty heavy-handed, but it's not anything that's done often.

geovannimp commented 2 years ago

Actually the idea is to have two playback devices at the same time.

jarikomppa commented 2 years ago

That is not a use case SoLoud was designed for.

JSandusky commented 1 year ago

It's a real world use case.

In some VR situations you're going to have a output device for the person in the HMD, an output for the haptic device they're wearing (they're often just LFO output devices), and the PC speakers for the additional person in a mixed mode experience/game ... up to some really insane shit when you're looking at the batshit insanity that happens in OFX / Cinder exhibition land of dozens of 1/4" TRS "output-devices" over a midi-out controller.

Skimming through, it looks like the main thing to resolve if I want to address this for myself is the absence of device-enumeration and explicit specification of which device and whatever consequences that means for a backend (ie. a backend might just not work, because it is some sort of static-hell or w/e jazz of not even supporting specified devices beyond the default and so on)? I don't really see anything high-risk (statics, etc) going on that I wouldn't be fine with sorting that junk out after the fact.