summaryrefslogtreecommitdiff
path: root/opl/opl.h
AgeCommit message (Collapse)Author
2014-10-07opl: Use uint64_t for microsecond times.Simon Howard
Previous revamping of the OPL library changed delay times from ms to us, and switched to 64-bit times for storage for them. However this type change was botched and some functions were still using 32-bit arguments. Change to 64-bit types. Thanks Quasar for reporting this. This fixes #438.
2014-05-11opl: Change library to use us instead of ms.Simon Howard
Multi-track MIDI files are played back using separate callback chains for each track, and this introduces the possibility of one track becoming out of sync with the others. This was noticeable in WADs that use multi-track MIDIs, such as Alien Vendetta. Increase the timing resolution to microsecond precision to fix this.
2014-05-10opl: Add API to adjust tempo.Simon Howard
When the tempo is changed, the times on all active timers must be adjusted to match the new timing values. Add an API to do this and invoke it when a tempo change meta event is read.
2014-05-05Clean up file headers.Simon Howard
This change rewrites and simplifies the copyright headers at the top of all source files: * Remove "Emacs style mode select" line; this line was included in the headers for the originally released source files and appears to be to set the file type for old versions of Emacs. I'm not sure entirely why it was required but I don't think it is any more. * Remove "You should have received a copy of..." text from copyright header. This refers to the old 59 Temple Place address where the FSF headquarters used to be located and is no longer correct. Rather than change to the new address, just remove the paragraph as it is superfluous anyway. This fixes #311. * Remove ---- separator lines so that the file headers are barer and more simplified.
2009-10-17Add OPL library API function to set software emulation sample rate, andSimon Howard
set from snd_samplerate in the configuration file. Subversion-branch: /branches/opl-branch Subversion-revision: 1723
2009-09-26Move register read/write code into OPL library. Detect OPL in theSimon Howard
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-21Implement pausing of music.Simon Howard
Subversion-branch: /branches/opl-branch Subversion-revision: 1688
2009-08-30Add method to clear all existing callbacks.Simon Howard
Subversion-branch: /branches/opl-branch Subversion-revision: 1642
2009-08-28Working SDL OPL driver.Simon Howard
Subversion-branch: /branches/opl-branch Subversion-revision: 1632
2009-05-30Add initial callback/timer API.Simon Howard
Subversion-branch: /branches/opl-branch Subversion-revision: 1538
2009-03-10Initialise OPL registers on startup, initialise voices.Simon Howard
Subversion-branch: /branches/opl-branch Subversion-revision: 1457
2009-03-10Add opl library main header and stub functions.Simon Howard
Subversion-branch: /branches/opl-branch Subversion-revision: 1455