Commit Graph

89 Commits

Author SHA1 Message Date
OBattler
7ad48f8d29 Switching filter implementation to use SB16 filters; fixing CD audio volume 2024-03-21 12:52:13 -03:00
Kagamiin~
7c99887293 Implementing ESS DMA counter; handling disable of auto-init while DMA is turned on 2024-03-21 12:52:13 -03:00
OBattler
34be04ab80 Implementing command 0xF2 IRQ masking behavior 2024-03-21 12:52:13 -03:00
Kagamiin~
b59db332f0 Implement registers 0xC2/0xC3; sound now works in Win3.1 2024-03-21 12:52:13 -03:00
Kagamiin~
6d3f2c478b Fix port 388h being disabled erroneously; set filter freq on sample rate change 2024-03-21 12:52:13 -03:00
Kagamiin~
d3aa111ba3 Fix bug in command length override; fix some other stuff; logging galore 2024-03-21 12:52:13 -03:00
Kagamiin~
c76ada30b7 Some cleanup, implementing IRQ and DMA channel register update 2024-03-21 12:52:13 -03:00
Cacodemon345
b8ff131996 More changes 2024-03-21 12:52:13 -03:00
Cacodemon345
f4c2a9c3ac Logging aids 2024-03-21 12:52:13 -03:00
Cacodemon345
0362f563f6 Some fixes 2024-03-21 12:52:13 -03:00
Cacodemon345
2e9e20c078 Deal with edge cases where drivers use non-ESS playback route 2024-03-21 12:52:13 -03:00
Cacodemon345
a2b13cadbf ESS: implement mixer regs and fix ESS-specific DMA 2024-03-21 12:52:13 -03:00
Cacodemon345
dfa0ec6be8 Implement ESS identification mixer register 2024-03-21 12:52:13 -03:00
Cacodemon345
68f6779b2f Handle length reloading correctly 2024-03-21 12:52:13 -03:00
Cacodemon345
650b7e633b Minor fixing 2024-03-21 12:52:13 -03:00
Cacodemon345
d46e00e5a0 Autolen updating 2024-03-21 12:52:13 -03:00
Cacodemon345
e7e582cd74 Finish DSP part of ESS 2024-03-21 12:52:13 -03:00
Cacodemon345
eda528d98c ESS register read function 2024-03-21 12:52:13 -03:00
Cacodemon345
3f7fbc7467 Extended mode toggle 2024-03-21 12:52:13 -03:00
Cacodemon345
4369284f65 ESS register 0xA2 update function 2024-03-21 12:52:13 -03:00
Cacodemon345
3f72c788bd ESS bits for IRQ raise 2024-03-21 12:52:13 -03:00
Cacodemon345
97b239aed5 More small pieces of ESS emulation 2024-03-21 12:52:13 -03:00
Cacodemon345
d5dad279c4 ESSreg macro 2024-03-21 12:52:13 -03:00
Cacodemon345
8308f41069 A bit of ESS 2024-03-21 12:52:13 -03:00
OBattler
e0d80aefb4 Moved OPL2 and OPL3 to a new 49716 Hz source so resampling is no longer needed, also fixed SB OPL and PC Speaker filtering (OPL was being downsampled to the selected DSP sample rate, which is incorrect, and the PC Speaker filter was using the wrong filter index in some liens). 2024-03-01 06:52:48 +01:00
OBattler
2f3d5d5fc4 More fixes to mixer register FFh, turns out the lower 3 bits are not a DMA channel, fixes detection of Sound Blaster 16 non-PNP. 2023-10-24 00:28:28 +02:00
OBattler
8b86bd812c Fixed to undocumented Sound Blaster AWE32+ mixer register FFh, now the AWE32 PNP plays sound again. 2023-10-23 01:01:17 +02:00
OBattler
ce603f3719 The fatal() in sound/snd_sb_dsp.c is now a sb_dsp_log(). 2023-10-22 16:43:51 +02:00
OBattler
90e682a339 More ViBRA 16XV fixing - DIAGNOSE 4.05 now successfully sets high DMA. 2023-10-22 00:46:06 +02:00
OBattler
28e2eb3ce5 More Sound Blaster 16+ / ViBRA 16 fixes, added optional PC speaker control via the Sound Blaster 16+ / ViBRA 16, and removed some left-over temporary code from device.c. 2023-10-21 06:53:11 +02:00
OBattler
9c434f4ed0 The ViBRA 16 XV now correctly does 16-bit DMA over 8-bit channels and fixed the DSP versions as well. 2023-10-20 21:02:35 +02:00
Jasmine Iwanek
11a2f5266a More linting in src/sound 2023-08-23 00:18:16 -04:00
Jasmine Iwanek
81bb5e564b Better fallthrough annotation macro. 2023-08-09 20:09:36 -04:00
Jasmine Iwanek
d2f42198fd Fix clang build failure 2023-07-26 12:41:18 -04:00
Jasmine Iwanek
998cfe5cc8 Constification 2023-07-25 17:59:24 -04:00
Jasmine Iwanek
db66543959 Apple build fix 2023-07-25 17:59:22 -04:00
Jasmine Iwanek
ee695e71f9 More sonarlint work 2023-07-25 17:59:22 -04:00
Jasmine Iwanek
ed1b369abd Yet more sonarlint fixes 2023-05-29 06:21:17 -04:00
Jasmine Iwanek
927c26f496 Fix some variant type comparisons 2023-05-02 02:18:17 -04:00
Jasmine Iwanek
e39dde3413 Magic numbers for sound freq changed to defines 2023-03-01 03:00:47 -05:00
Jasmine Iwanek
645732b7bf clang-format in src/sound/ 2022-09-18 17:22:55 -04:00
OBattler
b20dcf2ee1 Reverted the Sound Blaster DSP changes. 2022-07-23 17:53:26 +02:00
OBattler
74fd270ee8 Assorted SB fixes. 2022-07-18 23:55:30 +02:00
RichardG867
90e9054f2c CMI8x38: Implement TDMA update registers (nothing uses them) 2022-03-17 15:47:25 -03:00
RichardG867
fd6646f21b Run clang-format on all my new code 2022-03-16 14:12:45 -03:00
RichardG867
c2346a9ce4 Remove redundant SB DSP interleaved stereo checks 2022-03-07 11:19:58 -03:00
RichardG867
219129f97e CMI8x38: Implement Sound Blaster emulation 2022-03-06 19:59:14 -03:00
Jasmine Iwanek
f7084993c3 Formatting updates in src/sound + related includes 2022-02-25 22:06:27 -05:00
Jasmine Iwanek
4674756664 More newline and whitespace cleanups 2022-02-20 16:26:40 -05:00
Jasmine Iwanek
e32a84528d Additional comments in sb_dsp.c 2022-02-03 05:47:56 -05:00