Difference between revisions of "Modules/pcm/pcmenc"
From MSX Game Library
< Modules
(Created page with "{{MODULE |name=pcm/pcmenc |category=AudioFormat |image=raw.githubusercontent.com/aoineko-fr/MSXgl/main/engine/doc/img/sample_pcm.jpg |dependency1= |dependency2= |dependency3=...") |
(No difference)
|
Revision as of 13:51, 15 January 2024
pcm/pcmenc
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