Modules/ayfx/ayfx player

From MSX Game Library

Revision as of 23:09, 15 January 2024 by Aoineko (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

< Modules

ayfx/ayfx_player

Code: ayfx/ayfx_player.h

Category: Audio

Dependencies: None

Samples:

The ayfx/ayfx_player module lets you play sound effect in ayFX format.

note:

Usage

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

// ayFX options
// - AYFX_BUFFER_DEFAULT .......... Use PSG module's PSG registers buffer
// - AYFX_BUFFER_PSG2 ............. Use PSG module's 2nd PSG registers buffer (only if PSG_CHIP == PSG_BOTH)
// - AYFX_BUFFER_PT3 .............. Use PT3 module's PSG registers buffer
#define AYFX_BUFFER					AYFX_BUFFER_PT3

When using PT3 replayer, use AYFX_BUFFER_PT3 option. For other replayers (WYZ, VGM or lVGM), use AYFX_BUFFER_DEFAULT option.

Dependencies

Dependency on other modules: None

Documentation