crazii / SBEMU

legacy sound blaster emulation for DOS
GNU General Public License v2.0
599 stars 32 forks source link

Feature Request: Line-In mixer passthrough #116

Open hjnijlunsing opened 3 months ago

hjnijlunsing commented 3 months ago

Same as Sound Blaster Mixer CD-Input forwarding it would be good to have the same forwarding for Line-In. Rationale: With the embedded MPU401 forwarding ability to an MT32 (or similar Midi device); it would be nice to get the music mixed with the Sound Blaster FX.

Update: As a work-around I have edited sc_via82.c and added this line: via82xx_ac97_write(card->iobase, AC97_LINEIN_VOL , 0x0202);

This kinda works; but the Line-In volume is very low; after that I tried lowering the WAVE volume with SBMIX, but this ended up in muting the Line-In again.

Also some interesting notes:

jiyunomegami commented 1 month ago

Update: As a work-around I have edited sc_via82.c and added this line: via82xx_ac97_write(card->iobase, AC97_LINEIN_VOL , 0x0202);

Have you tried using 0x0000 for the maximum volume? It would be nice to have a proper mixer in SBEMU, but now as far as I know you can only set the master volume with /VOL.

  • compiling the latest code resulted in a warning: lto-wrapper: warning: using serial compilation of 6 LTRANS jobs

This is harmless, but you can get rid of it if you change -flto to -flto=auto in the makefile. If you have more than one CPU then this should speed up compilation.