{"id":16842658,"url":"https://github.com/rofl0r/dbopl","last_synced_at":"2026-03-10T15:32:15.079Z","repository":{"id":138311102,"uuid":"311439827","full_name":"rofl0r/dbopl","owner":"rofl0r","description":"dosbox dbopl OPL3 emulator","archived":false,"fork":false,"pushed_at":"2023-10-25T21:42:44.000Z","size":32,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T13:53:54.156Z","etag":null,"topics":["dosbox","opl2","opl3"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rofl0r.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-09T19:11:51.000Z","updated_at":"2024-04-20T23:26:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"7efffdb0-f542-4474-8253-39134ed75511","html_url":"https://github.com/rofl0r/dbopl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rofl0r/dbopl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rofl0r%2Fdbopl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rofl0r%2Fdbopl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rofl0r%2Fdbopl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rofl0r%2Fdbopl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rofl0r","download_url":"https://codeload.github.com/rofl0r/dbopl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rofl0r%2Fdbopl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30340117,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T15:03:31.997Z","status":"ssl_error","status_checked_at":"2026-03-10T15:01:30.431Z","response_time":106,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dosbox","opl2","opl3"],"created_at":"2024-10-13T12:47:46.362Z","updated_at":"2026-03-10T15:32:15.060Z","avatar_url":"https://github.com/rofl0r.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"dbopl OPL3 emulator\n===================\n\nthis is the so-called dbopl opl3 emulator, ripped from DOSBOX svn rev 4391\n(November 2020), with full commit history and some tiny touch-ups to make\nit compile standalone. as of the time of this writing, this is the default\nOPL emulator used by DOSBOX.\n\nUsage:\n======\n\ndrop files into your project, include dbopl.h, and use in your code:\n\n    // initialize the chip(s). samplerate is typicallly 44100.\n    DBOPL::Handler chip = DBOPL::Handler();\n\n    // write a value into a register.\n    chip.WriteReg(reg, val);\n\n    // get a sample from the chip.\n    int32_t sample_tmp;\n    int16_t sample;\n    chip.Generate(\u0026tmp, 1);\n    sample = sample_tmp;\n\nthen compile it and link dbopl.cpp to your code.\nthat's pretty much all there is to it.\n\ncheck https://github.com/digital-sound-antiques/emu2413/blob/master/sample2413.c\nfor a good example of what and how to feed into the chip, and when to read\nsamples (and how many) from it.\nalthough the example uses a different chip emulator, the strategy is identical.\n\n\nLicense\n=======\nunfortunately, the code is licensed as GPL2+.\n\nTODO\n====\nconvert to a language that doesn't suck, i.e. C.\nalso it would be nice to poke the original authors whether they could relicense\nthe code as MIT.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frofl0r%2Fdbopl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frofl0r%2Fdbopl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frofl0r%2Fdbopl/lists"}