Modules/scc

From MSX Game Library

Revision as of 00:53, 15 January 2024 by Aoineko (talk | contribs) (Created page with "{{MODULE |name=scc |category=Device |image=raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/sample_vgm.jpg |dependency1= |dependency2= |dependency3= |sample1=s_v...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

< Modules

scc

Code: scc.h

Category: Device

Dependencies: None

Samples:

The scc module provides direct access to the functions of the Konami SCC sound processor.

Usage

To use this module, include "scc.h" in your source code, and add "scc" to the modules list (LibModules) in your project's configuration file (project_config.js).


Samples

See module use cases in the sample programs:

Settings

Library configuration (msxgl_config.h):

// SCC options
#define SCC_USE_EXTA				TRUE	// Add helper functions to handle PSG settings
#define SCC_USE_RESUME				TRUE	// Add function to allow playback pause and resume
// - SCC_SLOT_DIRECT .............. Program on a SCC cartridge
// - SCC_SLOT_FIXED	............... Fixed slot-id (non-expanded second cartridge slot)
// - SCC_SLOT_USER ................ Defined by the user
// - SCC_SLOT_AUTO ................ First auto-detected cartridge
#define SCC_SLOT_MODE				SCC_SLOT_AUTO

Dependencies

Dependency on other modules: None

Documentation