libmsx
C library for MSX
Loading...
Searching...
No Matches

#include <audio_efx_psg2scc.h> More...

+ Collaboration diagram for The "PSG to SCC/SCC+" effector.:

Functions

void audio_efx_psg2scc (void)
 MSX The "PSG to SCC/SCC+" effector for the libmsx audio replayer.
 

Detailed Description

#include <audio_efx_psg2scc.h>

The "PSG to SCC/SCC+" effector copies the pitch and volume of the PSG channels to the SCC/SCC+.

It is useful for creating PSG and SCC/SCC+ unisons from a PSG-only sound source.

c
#include <msx.h>
#include <audio.h>
// Custom VSYNC interrupt handler.
void play(void) {
// To use the effector, call `audio_efx_psg2scc()` every after `audio_play()`.
}
void main(void) {
for (;;) {
// ...
}
}
The libmsx audio replayer.
The "PSG to SCC/SCC+" effector.
void audio_efx_psg2scc(void)
MSX The "PSG to SCC/SCC+" effector for the libmsx audio replayer.
void audio_init(void)
MSX Initialize the libmsx audio replayer.
void audio_play(void)
MSX Main routine of the libmsx audio replayer.
void await_vsync(void)
MSX Waits for next VSYNC interrupt.
void set_vsync_handler(void(*handler)(void))
MSX Register user defined VSYNC interrupt handler.
Using #include <msx.h> includes almost all C header files in libmsx, for ease to use.

Function Documentation

◆ audio_efx_psg2scc()

void audio_efx_psg2scc ( void  )

MSX The "PSG to SCC/SCC+" effector for the libmsx audio replayer.

Calling this function each time after audio_play() will copies the pitch and volume of the PSG channels to the SCC/SCC+.