This repository is a fork of the venerable reSID MOS6581 / MOS8580 SID emulator by Dag Lem, widely used in different incarnations.
winreSID adds a simple C wrapper interface around reSID (C++) that makes it possible to conveniently use it in different emulators and applications as an optional DLL add-on.
Create a SID instance with given clock_type (master clock frequency), model and replay frequency.
Destroy the SID instance
Change replay frequency to sampleRate_. Note, this is the sound replay frequency of the host application.
Set SID model to either 6581 (=0) or 8580 (!=0).
Resets the SID.
Pause the engine
Write 'value' to the SID register 'reg'.
Read SID register 'reg'. Note, some SID registers are write-only. The A/D ports are not implemented.
Render 'count' samples to the sound buffer provided.
Clock the SID engine and return one SID sound sample with the original SID frequency.
Set the amplification. Original SID output will be right shifted by this amount.
Get the reSID library version string.
Plans include:
- implement support for multiple instances
- make it work as a Linux library
- add proper library support for cycle based rendering into a buffer