Modules/wyz/wyz player2

From MSX Game Library

< Modules

wyz/wyz_player2

Code: wyz/wyz_player2.h

Category: Audio

Dependencies:

Samples:

The wyz/wyz_player module lets you play music in WYZ Tracker format. This module use replayer version WYZ 47d and allow to use 2 PSG (internal one plus and external one) to replay music on 6 channels.

Usage

To use this module, include "wyz/wyz_player2.h" in your source code, and add "wyz/wyz_player2" 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):

// WYZ Tracker replayer options
// Channels number
// - WYZ_3CH
// - WYZ_6CH
#define WYZ_CHANNELS				WYZ_3CH	// Number of supported channels (can be 3 for 1 PSG or 6 for 2 PSG)
#define WYZ_USE_DIRECT_ACCESS		FALSE	// Send data directly to PSG registers (otherwise, write in a RAM buffer)
#define WYZ_CHAN_BUFFER_SIZE		0x20	// Size of the channel buffer

Dependencies

Dependency on other modules:

Documentation