Modules/pcm/pcmenc

From MSX Game Library

< Modules

pcm/pcmenc

Code: pcm/pcmenc.h

Category: Audio

Dependencies: None

Samples:

The pcm/pcmenc module lets you play sound sample in Crystal Clear PSG samples format (by Arturo Ragozini and Daniel Vik).

Usage

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

Conversion tool to generate PCM data can be found in folder tools\audio\pcmenc.

Check README.txt there for detail about how to use the pcmenc tool.

Samples

See module use cases in the sample programs:

Settings

Library configuration (msxgl_config.h):

// PCM-Encoder supported frequency (more than 1 value allowed)
// - PCMENC_NONE, PCMENC_8K, PCMENC_11K, PCMENC_22K and PCMENC_44K
#define PCMENC_FREQ		PCMENC_8K | PCMENC_11K | PCMENC_22K | PCMENC_44K

Dependencies

Dependency on other modules: None

Documentation