// SPDX-License-Identifier: MIT //! The SN76489 programmable sound generator and its Sega relatives. //! //! Written from documents (sn76489-python's `docs/spec.md`), not from another program's //! source: its `docs/restart.md` has the rules. The names below are the whole public surface //! (its `docs/api.md`; the Rust spelling is in this crate's `docs/status.md`). //! //! A transcription of sn76489-python's `src/sn76489_python/__init__.py` at f8157f4. //! Besides the reference's seven names this crate exports `NoTestRegister` (the error that //! stands for Python's `AttributeError` from `write_test`), `IDEAL_VOLUME_TABLE`, and //! `VARIANTS` with `variant(name)` (the four parts by name, for the ladder's tools and the //! `serde` feature's save states). mod chip; mod variants; pub use chip::{NoTestRegister, CLOCKS_PER_SAMPLE, SN76489}; pub use variants::{ variant, PSGVariant, GAME_GEAR_PSG, IDEAL_VOLUME_TABLE, SEGA_VDP_PSG, SN76489AN, VARIANTS, YM7101_PSG, };