Difference between revisions of "Modules/pcm/pcmplay"
From MSX Game Library
< Modules
(Created page with "{{MODULE |name=pcm/pcmplay |category=AudioFormat |image= |dependency1= |dependency2= |dependency3= |sample1=s_pcmplay |sample2= |sample3= }}") |
(No difference)
|
Revision as of 13:52, 15 January 2024
pcm/pcmplay
The pcm/pcmplay module lets you play sound sample in following format: PCM data is 8-bit mono PCM data at 8KHz/11KHz.
Usage
To use this module, include "pcm/pcmplay.h" in your source code, and add "pcm/pcmplay" 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\pcmplay.
Check README.md there for detail about how to use the pcmplay tool.
Samples
See module use cases in the sample programs:
Settings
Library configuration (msxgl_config.h):
// PCMPlay // - PCMPLAY_8K // - PCMPLAY_11K #define PCMPLAY_FREQ PCMPLAY_8K #define PCMPLAY_USE_RESTORE FALSE
Dependencies
Dependency on other modules: None
Documentation