Commit graph

91 commits

Author SHA1 Message Date
Simon Howard
77ea97c627 When loading driver, pass the full path to the ioperm.sys file.
Subversion-branch: /branches/opl-branch
Subversion-revision: 1874
2010-02-27 18:57:46 +00:00
Simon Howard
1398c8aed3 Fix race condition with condition variable freed before it is signaled.
Subversion-branch: /branches/opl-branch
Subversion-revision: 1873
2010-02-27 17:48:25 +00:00
Simon Howard
06b97d2d11 Add OPL hardware playback support for Windows NT-based systems.
Subversion-branch: /branches/opl-branch
Subversion-revision: 1871
2010-02-26 21:07:59 +00:00
Simon Howard
cdacf59ace Add a hint message about permissions if unable to get I/O permissions
for hardware OPL access.

Subversion-branch: /branches/opl-branch
Subversion-revision: 1844
2010-02-05 03:27:58 +00:00
Simon Howard
a8e7930856 Change GetSliceSize() to always return a power of two.
Subversion-branch: /branches/opl-branch
Subversion-revision: 1724
2009-10-17 22:45:22 +00:00
Simon Howard
e30325c40f Add OPL library API function to set software emulation sample rate, and
set from snd_samplerate in the configuration file.

Subversion-branch: /branches/opl-branch
Subversion-revision: 1723
2009-10-17 22:36:15 +00:00
Simon Howard
73cc6b5a60 Make OpenBSD native OPL backend work on x86_64 as well as i386.
Subversion-branch: /branches/opl-branch
Subversion-revision: 1707
2009-10-04 04:21:40 +00:00
Simon Howard
073e710f68 Use Mix_HookMusic rather than Mix_SetPostMix for OPL emulation, to avoid
conflict with PC speaker emulation.

Subversion-branch: /branches/opl-branch
Subversion-revision: 1706
2009-10-03 22:43:07 +00:00
Simon Howard
4a70f989d2 Convert to American English spellings.
Subversion-branch: /branches/opl-branch
Subversion-revision: 1700
2009-10-01 00:08:48 +00:00
Simon Howard
b8b755758c Initialize dwOSVersionInfoSize before calling GetVersionEx().
Subversion-branch: /branches/opl-branch
Subversion-revision: 1697
2009-09-30 01:13:18 +00:00
Simon Howard
d484bfaf00 Add Win9x native OPL driver (untested).
Subversion-branch: /branches/opl-branch
Subversion-revision: 1696
2009-09-30 00:11:44 +00:00
Simon Howard
de66c6b967 Set privilege level to 3, not 1.
Subversion-branch: /branches/opl-branch
Subversion-revision: 1694
2009-09-27 00:40:55 +00:00
Simon Howard
dce2c95f05 Move register read/write code into OPL library. Detect OPL in the
library code, so that we fall back to software emulation if we have port
access but an OPL is not detected. Fix detection of ioperm in configure.

Subversion-branch: /branches/opl-branch
Subversion-revision: 1692
2009-09-26 23:52:41 +00:00
Simon Howard
6f3d0abb12 Add OpenBSD/NetBSD native OPL backend.
Subversion-branch: /branches/opl-branch
Subversion-revision: 1690
2009-09-26 19:56:24 +00:00
Simon Howard
07f5024578 Disable OPL debug output.
Subversion-branch: /branches/opl-branch
Subversion-revision: 1689
2009-09-24 21:57:21 +00:00
Simon Howard
79698ecfd9 Implement pausing of music.
Subversion-branch: /branches/opl-branch
Subversion-revision: 1688
2009-09-21 22:20:33 +00:00
Simon Howard
076adeb0aa Add method to clear all existing callbacks.
Subversion-branch: /branches/opl-branch
Subversion-revision: 1642
2009-08-30 12:07:04 +00:00
Simon Howard
a10180a460 Use OPL_Delay to wait 1ms for timer to expire when doing OPL detect.
Subversion-branch: /branches/opl-branch
Subversion-revision: 1638
2009-08-29 21:26:43 +00:00
Simon Howard
6cae0f05cf Don't crash if OPL is shutdown after SDL was initialised.
Subversion-branch: /branches/opl-branch
Subversion-revision: 1635
2009-08-29 21:03:24 +00:00
Simon Howard
e7262d2a88 Fix crash when specifying an invalid filename.
Subversion-branch: /branches/opl-branch
Subversion-revision: 1634
2009-08-29 20:12:49 +00:00
Simon Howard
ca065a06ca Set timer callback for OPL emulator so that the adlib detection routine
works.

Subversion-branch: /branches/opl-branch
Subversion-revision: 1633
2009-08-29 20:08:21 +00:00
Simon Howard
e33a496133 Working SDL OPL driver.
Subversion-branch: /branches/opl-branch
Subversion-revision: 1632
2009-08-28 18:04:04 +00:00
Simon Howard
b09cb29b9f Disable debug output.
Subversion-branch: /branches/opl-branch
Subversion-revision: 1541
2009-06-02 01:08:20 +00:00
Simon Howard
40ca9e8297 Fix crash due to timer thread starting before resources allocated.
Subversion-branch: /branches/opl-branch
Subversion-revision: 1540
2009-06-02 00:36:52 +00:00
Simon Howard
a09487cb98 Fix OPL callback queue.
Subversion-branch: /branches/opl-branch
Subversion-revision: 1539
2009-05-31 23:20:17 +00:00
Simon Howard
98ee23f426 Add initial callback/timer API.
Subversion-branch: /branches/opl-branch
Subversion-revision: 1538
2009-05-30 23:24:11 +00:00
Simon Howard
6e4f6ab962 Set channel bits for OPL3 so that OPL2 traces will play back properly.
Subversion-branch: /branches/opl-branch
Subversion-revision: 1537
2009-05-28 18:37:31 +00:00
Simon Howard
b695843cc5 Fix OPL detect.
Subversion-branch: /branches/opl-branch
Subversion-revision: 1536
2009-05-28 18:34:05 +00:00
Simon Howard
223879d264 Add droplay example program from /research, adapted to work with OPL
library.

Subversion-branch: /branches/opl-branch
Subversion-revision: 1535
2009-05-28 18:26:13 +00:00
Simon Howard
a4695f20fb Add initial SDL driver.
Subversion-branch: /branches/opl-branch
Subversion-revision: 1534
2009-05-27 18:01:00 +00:00
Simon Howard
1d92cd1477 Oops.
Subversion-branch: /branches/opl-branch
Subversion-revision: 1533
2009-05-27 18:00:35 +00:00
Simon Howard
d9f55dd56c Fix compile warning.
Subversion-branch: /branches/opl-branch
Subversion-revision: 1491
2009-03-29 22:40:44 +00:00
Simon Howard
962d6dcf12 Debug trace code for register writes.
Subversion-branch: /branches/opl-branch
Subversion-revision: 1462
2009-03-11 20:20:05 +00:00
Simon Howard
c423d770e9 Fix outb() call, display error message if unable to gain port
permissions.

Subversion-branch: /branches/opl-branch
Subversion-revision: 1460
2009-03-10 22:19:29 +00:00
Simon Howard
02e3e61847 Set svn:ignore property.
Subversion-branch: /branches/opl-branch
Subversion-revision: 1459
2009-03-10 21:57:06 +00:00
Simon Howard
84a05be9db Add OPL lib plumbing and Linux native driver.
Subversion-branch: /branches/opl-branch
Subversion-revision: 1458
2009-03-10 21:55:55 +00:00
Simon Howard
ca7f823d48 Initialise OPL registers on startup, initialise voices.
Subversion-branch: /branches/opl-branch
Subversion-revision: 1457
2009-03-10 21:21:16 +00:00
Simon Howard
9f8ab35852 Add opl library main header and stub functions.
Subversion-branch: /branches/opl-branch
Subversion-revision: 1455
2009-03-10 00:02:41 +00:00
Simon Howard
6f41d1d24f Make global variables static. Replace uint with uint32_t.
Subversion-branch: /branches/opl-branch
Subversion-revision: 1454
2009-03-09 23:59:43 +00:00
Simon Howard
4422bbf981 Fix up fmopl code to remove ScummVM dependencies and compile as C. Add
to build.

Subversion-branch: /branches/opl-branch
Subversion-revision: 1446
2009-03-04 21:18:18 +00:00
Simon Howard
2a64882493 Add fmopl files from ScummVM.
Subversion-branch: /branches/opl-branch
Subversion-revision: 1445
2009-03-04 21:16:07 +00:00