Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible OPL3 and mixer enhancement: "Resound OPL3" emulation mode (4-channel surround mode) #552

Open
joncampbell123 opened this issue Feb 26, 2018 · 5 comments

Comments

@joncampbell123
Copy link
Owner

joncampbell123 commented Feb 26, 2018

Ref: LGR Resound OPL3 https://www.youtube.com/watch?v=61d9xFG5aSo

However to render 4-channel surround, the mixer code will need to be updated somehow to support 2-channel or 4-channel output. I know that SDL 1.x can be asked to output 4-channel surround sound at least (I've done it before).

This may require some changes to OPL emulation as well.

As a first step, all 4 channels could be downmixed to stereo, with an option to mix the back channels into a Dolby Surround type "90 degrees out of phase" type composition, or just mix the back & front L and R to just L and R.

I may not get to this soon, but this is a future enhancement idea to add eventually.

@joncampbell123
Copy link
Owner Author

The card arrived in the mail, so DOSLIB development can start soon.

DOSBox-X is going to need work to make surround output possible because all mixer code is hard-coded around 16-bit stereo output.

@joncampbell123
Copy link
Owner Author

An interim step could be to render the 3rd and 4th OPL3 channels as one surround channel, invert phase in one channel and mix into stereo (Dolby surround compatible), though I've heard real surround encoding uses some kind of convolution filter as well that I don't know how to implement.

@Torinde
Copy link
Contributor

Torinde commented Nov 28, 2022

VirtualBox 6.0.0 has "support for surround speaker setups (as used by Windows 10 Build 1809)" - I assume in HDA, but maybe also in AC'97? Hardware HDA was supported by WinXP/2K and AC'97 also by Win9x.

May help also for #3597

@Torinde
Copy link
Contributor

Torinde commented Nov 29, 2022

86box also has AC'97

@Torinde
Copy link
Contributor

Torinde commented Dec 30, 2023

Possibly related - stereo-extension, 4-ch output support:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants