rofl0r / dbopl Goto Github PK
View Code? Open in Web Editor NEWdosbox dbopl OPL3 emulator
dosbox dbopl OPL3 emulator
dbopl OPL3 emulator =================== this is the so-called dbopl opl3 emulator, ripped from DOSBOX svn rev 4391 (November 2020), with full commit history and some tiny touch-ups to make it compile standalone. as of the time of this writing, this is the default OPL emulator used by DOSBOX. Usage: ====== drop files into your project, include dbopl.h, and use in your code: // initialize the chip(s). samplerate is typicallly 44100. DBOPL::Handler chip = DBOPL::Handler(); // write a value into a register. chip.WriteReg(reg, val); // get a sample from the chip. int32_t sample_tmp; int16_t sample; chip.Generate(&tmp, 1); sample = sample_tmp; then compile it and link dbopl.cpp to your code. that's pretty much all there is to it. check https://github.com/digital-sound-antiques/emu2413/blob/master/sample2413.c for a good example of what and how to feed into the chip, and when to read samples (and how many) from it. although the example uses a different chip emulator, the strategy is identical. License ======= unfortunately, the code is licensed as GPL2+. TODO ==== convert to a language that doesn't suck, i.e. C. also it would be nice to poke the original authors whether they could relicense the code as MIT.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.