Difference between revisions of "Modules/psg/Settings"
From MSX Game Library
(Created page with "// PSG options // - PSG_INTERNAL ................. Use internal PSG chip (port A0-A2) // - PSG_EXTERNAL ................. Use external PSG chip (port 10-12) // - PSG_BOTH .......") |
|||
Line 1: | Line 1: | ||
+ | Library configuration (<tt>msxgl_config.h</tt>): | ||
+ | <syntaxhighlight lang="c"> | ||
// PSG options | // PSG options | ||
// - PSG_INTERNAL ................. Use internal PSG chip (port A0-A2) | // - PSG_INTERNAL ................. Use internal PSG chip (port A0-A2) | ||
Line 10: | Line 12: | ||
#define PSG_USE_EXTRA TRUE // Add helper functions to handle PSG settings | #define PSG_USE_EXTRA TRUE // Add helper functions to handle PSG settings | ||
#define PSG_USE_RESUME | #define PSG_USE_RESUME | ||
+ | </syntaxhighlight> |
Latest revision as of 09:04, 15 January 2024
Library configuration (msxgl_config.h):
// PSG options // - PSG_INTERNAL ................. Use internal PSG chip (port A0-A2) // - PSG_EXTERNAL ................. Use external PSG chip (port 10-12) // - PSG_BOTH ..................... Use both internal and external PSG chips #define PSG_CHIP PSG_INTERNAL // - PSG_DIRECT ................... Function set directly the PSG registers // - PSG_INDIRECT ................. Function set a buffer (Apply() function must be call once a frame) #define PSG_ACCESS PSG_INDIRECT #define PSG_USE_NOTES FALSE // Add notes table to convert note to tone #define PSG_USE_EXTRA TRUE // Add helper functions to handle PSG settings #define PSG_USE_RESUME